-
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
Error while migrating from Angular CLI 11 to Angular CLI 12 #17667
Comments
My package.json after running above steps:
|
@mandarini Can you please help us out here. This has been a blocker for our project. We already looked over google and could not find any solution |
Thanks for reporting this! Nx 12.0.0 (the version you're migrating to) doesn't support Angular 12. That's why the Angular version was not migrated to it. You need to migrate Nx to a version that supports Angular 12. As you can see in https://nx.dev/packages/angular/documents/angular-nx-version-matrix#nx-and-angular-version-compatibility-matrix, Nx v12.3.0 is the minimum version that supports Angular v12. The recommended version would be Nx v13.1.4, which is the latest Nx version that supports it. I'm closing this since the migration was performed to a version of Nx that doesn't support Angular v12. Please migrate Nx to an appropriate version based on the docs shared above. |
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 am in the process of upgrading my project from Angular 11 to Angular 12. I have run below commands:
nx migrate 12
npm install
npx nx migrate --run-migrations
I observed that the Angular version was not updated to v12 , so I followed the below steps as suggested in this issue. I continued as :
npx nx migrate @angular/core@l12.2.10
npm install
npx nx migrate --run-migrations
npx nx migrate @angular/cli@12.2.10
On step 7 (
npx nx migrate @angular/cli@12.2.10
) , I am getting the below error:Expected Behavior
The migration to Angular 12 should be completed successfully.
GitHub Repo
No response
Steps to Reproduce
nx migrate 12
npm install
npx nx migrate --run-migrations
npx nx migrate @angular/core@l12.2.10
npm install
npx nx migrate --run-migrations
npx nx migrate @angular/cli@12.2.10
Node -
v14.15.0
npm -
6.14.8
Nx Report
Failure Logs
The text was updated successfully, but these errors were encountered: