Lightning Component Bundle Failing on Deployment

I am trying to deploy a changeset that contains a lightning component from a dev sandbox with not much data to a partial sandbox with more data. When I go to validate the inbound changeset with settings as ‘default’, I get the following errors (they appear to be the same error):

Invalid definition for null:CreateSupportCaseController: null
Invalid definition for null:CreateSupportCaseController: null

My lightning component bundle contains the following:


Is there anything wrong with the naming that could be causing the problem?

If I need to include any other information, please let me know. Thank you for the help.

enter image description here


Try creating the component directly in production.

Just make it exactly the same name and copy the helper and controller etc files in one by one in the Developer console.

I’ve just verified that this works and that the component is valid – it is.

From there, the component should update properly from any updates from the sandbox, as long as the names are an exact match.

Note this only applies to the Lightning Components

Apex Classes must be deployed normally. If you have a dependency in the Lightning component to the Apex class, you can remove it and then add it back once your have successfully deployed the Apex Class.

Also consider renaming your component – Having components and apex classes that are an exact match seems like a bad idea

Source : Link , Question Author : Chase Klingel , Answer Author : Caspar Harmer

Leave a Comment