-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cannot migrate from 11.6.3 to 12 #5923
Comments
Thanks for reporting this! Please make sure all your targets for a project have a builder which is a required property. Targets are the specification of something that can be run in a project, and the builder specifies the function that will be run when the target is invoked. Without the builder, there's no way to know what to do when invoking the target. If you currently have targets without a builder, that means those targets are not being used and most likely, they are not needed or you need to add their builder property to make them usable. I'm closing this one since it's a duplicate of #5655. |
Hi @leosvelperez the only project that do not have a builder target are our libraries. |
Can you provide the project definition of any of those libraries? Libraries are not special when it comes to targets having a builder or not. All types of projects must have a builder in their targets, otherwise, the target is invalid. As I said in the above comment, if you don't have a builder in a target, you don't need the target then, it's definitely not being used. |
One example for a library definition would be the following
Those libs are consumed by other libraries and the composite library is then consumed by an app. |
@mehrad-rafigh all targets in that project ( |
Thanks @leosvelperez that clears a big question mark in my head. I will take a look which one of the projects do not a have a builder property |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I cannot migrate my workspace from nx 11.6.3 to 12. Running the migrations I get the following error
Alan from the Angular CLI Team answered my unrelated question in this issue.
angular/angular-cli#21075 (comment)
Our libraries do not have a builder property.
Expected Behavior
I can migrate to nx 12
Environment
The text was updated successfully, but these errors were encountered: