I am using Sublime Text and MavensMate.
I created a new lightning component in the dev console and then added it to the package in MavensMate. Usually at this point I have to clean my project or I get the error. Now nothing seems to fix it.
When I try to compile my component I get "[ERROR]: Could not update lightning components: Cannot read property 'Id' of undefined."
I have tried:
- deleting the .lightning file in config
- cleaning the project
- creating a new project
- refreshing the metadata and updating the project.
none of them helped.
I manually added the component, css, controller, and helper to the .lightning file and that worked until I updated my project and then it lost the updates to the .lightning file.
Does anyone have a suggestion on how to get my component to compile?