Closed markgoho closed 1 year ago
I got exactly the same problem when updating from Nx 14.8 to Nx 15
I just found a solution, I realised that I had the "@nrwl/angular" and "nrwl/nx-cloud" packages in the "dependencies" section within the package.json instead of in the "devDependencies" dictionary. I have moved and run rm -rf node_modules && npm i
and then the build worked! Hope it help you 🙌
I did have @nrwl/angular in my dependencies array, and I've moved it, but I'm curious how it got there to begin with
Thanks for reporting this!
This was fixed on https://github.com/nrwl/nx/pull/14723 and the change will be released in the upcoming 15.7.0 release.
I did have @nrwl/angular in my dependencies array, and I've moved it, but I'm curious how it got there to begin with
The @nrwl/angular
plugin contains some runtime code (data persistence, module federation helpers, etc.) that workspaces can use. That's why by default the plugin is added to the dependencies
entry, just in case the runtime code is being used. You're free to move it to devDependencies
if you don't depend on it at runtime.
I'm going to close this issue since it has been addressed. Please keep an eye on the releases to get the fix.
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
running the build target fails with error:
Expected Behavior
Builds doesn't break after upgrading workspace
GitHub Repo
https://github.com/ideacrew/enroll-fe
Steps to Reproduce
workspace-upgrade-15-6-2
branchnpx nx build slcsp-calculator
Nx Report
Failure Logs
Additional Information
If I try to manually install the missing module with
npm i @angular-devkit/core -D
and try to build, I get a new error:and I install that package via
npm i @angular-devkit/architect -D
the build succeeds!