migrate to 14.2.2, migrations can not be run "Cannot find module '@angular-devkit/core'"
See original GitHub issueHey, thank you for updating to angular 14! We have problems to migrate to 14.2.2. We have the same issue we had some months ago. This time NX_MIGRATE_USE_LOCAL=true
does not work
Current Behavior
nx migrate --run-migrations are not running through. Stops at Running migration migration-entry-components with error
Require stack:
- /Users/matthiasristo/.nvm/versions/node/v16.14.2/lib/node_modules/nx/src/commands/ngcli-adapter.js
- /Users/matthiasristo/.nvm/versions/node/v16.14.2/lib/node_modules/nx/src/commands/migrate.js
- /Users/matthiasristo/.nvm/versions/node/v16.14.2/lib/node_modules/nx/src/cli/index.js
- /Users/matthiasristo/.nvm/versions/node/v16.14.2/lib/node_modules/nx/bin/nx.js
Expected Behavior
Migration should run through sucessfully
Steps to Reproduce
- Run nx migrate latest (currently 14.2.2)
- Run npm i
- Run nx migrate --run-migrations
This issue may not be prioritized if details are not provided to help us reproduce the issue. Seems to be similar like 7731. Environment does not work in this case
Failure Logs
Environment
OS : darwin arm64
npm : 8.5.0
nx : 14.2.2
@nrwl/angular : 14.2.2
@nrwl/cypress : 14.2.2
@nrwl/detox : Not Found
@nrwl/devkit : 14.2.2
@nrwl/eslint-plugin-nx : 14.2.2
@nrwl/express : Not Found
@nrwl/jest : 14.2.2
@nrwl/js : 14.2.2
@nrwl/linter : 14.2.2
@nrwl/nest : 14.2.2
@nrwl/next : Not Found
@nrwl/node : 14.2.2
@nrwl/nx-cloud : 14.0.8
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.2.2
@nrwl/web : Not Found
@nrwl/workspace : 14.2.2
typescript : 4.7.3
---------------------------------------
Community plugins:
@ngneat/hot-toast: 4.1.0
@ngneat/transloco: 4.0.0
@ngneat/spectator: 10.0.0
@storybook/angular: 6.5.8```
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:12
Top Results From Across the Web
Error: Module build failed - Angular migration to 14.2.2
Show activity on this post. I have upgraded my angular project from 6.0v to 14.2. 2v and after doing ng serve I facing...
Read more >Troubleshooting migration tasks in AWS Database Migration ...
These topics can help you to resolve common issues using both AWS DMS and selected endpoint ... Migration tasks run slowly; Task status...
Read more >Chapter 14. Managing instances Red Hat OpenStack Platform ...
Live migration requires that both the source and destination Compute nodes are running. In some cases, instances cannot use live migration. For more...
Read more >Upgrade to Angular 14 - Techiediaries
In this short guide we'll see how to update Angular core framework and Angular CLI to the latest Angular 14 version and upgrading...
Read more >Fixing Could not find module @angular-devkit/build-angular ...
To fix Could not find module angular-devkit-build-angular error in Angular follow the below steps 1. Delete node_modules folder and run npm ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve found a fix (and possibly the issue).
When running the command
nx migrate --run-migrations
, it was the globalnx
command that was used instead of the local one.In order to fix it, you can either use
./node_modules/.bin/nx migrate --run-migrations
npx nx@14.3.6 migrate --run-migrations
Same issue, running on Mac. Getting
when running migration migration-entry-components. Migrating from 13.10.5 to latest, which resolves to 14.3.3 at the moment.
I’ve read in this post that it is not a good idea to add
"cli": "nx"
to the migrations. Indeed, when adding this tomigration-v14-typed-forms
and running it, it does not replace FormGroup with UntypedFormGroup, indicating the migration simply does not work with"cli": "nx"
.