Skip to content

Upgrading angular version doesn't work with nx migrate #28468

Closed Answered by Cronnay
Cronnay asked this question in Questions
Discussion options

You must be logged in to vote

Okay! So now I see. The documentation seems very vague, but now I understand how upgrading works.

Upgrading with nx migrate latest only updates the @nx ones. If you want to upgrade angular specific ones, you'll have to upgrade and migrate one after another, like:

  1. npx nx migrate @angular/cli@15
  2. npx nx migrate --run-migration
  3. npx nx migrate @angular/core@15
  4. npx nx migrate --run-migration

I couldn't find any way of upgrading and migrating multiple packages at the same time. This seems to be the way.

Also - follow angular's update guide to see the version of Typescript + node, what is needed for you to run the application.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Cronnay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant