-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created Aura Components aren't deployable #46
Comments
Can you compare the Lightning Component in your feature branch to that of the component in the generated package and see what's missing? We don't typically do LWC dev so there might need to be small adjustments. |
Hi, that's not about Lightning Web Components. I'm talking as mentioned before, about AuraDefinitionBundle (Lightning Component Bundle missed Bundle before) https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_lightningcomponentbundle.htm |
Oh sorry... Can you still compare them to see what is different? |
Hi, I checked the metadata and there is only one file created named AuraAPIname.cmp-meta.xml. There should be as well files named like this
Regards |
Weird, I'll have to try to reproduce. Couple other things. Can you tell me the version of SFDX cli you are using?
Also if you still are able to reproducible, you can provide me with the output of
|
Hi sfdx version is A question about the second command. What is meant for 'your-feature'? The Aura component? |
the feature branch... so something like
Particularly I'm only interested in which files had changed around the Aura Component. |
Hi, I have to use two commits, but in sum it should be the same $ git --no-pager diff --name-status c0039dade0aff45d4bfe407084b9eca6f6e29308 84123d2f3f09de4391d2414fbb2807340b6993b3 |
Hi, perhabs I have a idea to solve this. If there any files (one or more) changed within the aura component folder, you always have to take all files from the component into the deployment. Only if all files are available, the aura component is deployable. |
@achimraible that's actually exactly how it SHOULD be working. https://github.com/callawaycloud/sfdx-git-packager/blob/master/src/metadataResolvers.ts#L71 The |
Hi,
when one ore more Lightning Components (metadata type AuraDefinitionBundle) are part of the diff between two branches, the MDAPI deployment, which is based on the metadata created by the sfdx-git-packager, fails with the following error
Main markup cannot be empty. If you are trying to delete the Lightning definition bundle, directly delete the bundle instead.
Unable to build Aura Definition source for c:auraAPIName: We couldn't validate your component. Review it and try again. The following code has invalid references which caused save validation failure. aura.impl.db.packaging.LightningComponentPackagingServiceImpl@17d62fcf
Regards
Achim
The text was updated successfully, but these errors were encountered: