Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i update my monorepo nx workspace without upgrading angular version?

Want to move from nx 10 workspace to 12 without moving away from angular 10.
nx migrate latest however upgrade also upgrade angular by default.

I searched https://nx.dev/previous/angular/core-concepts/updating-nx.
Nothing specific mentioned here.

Can someone please let me know if it is possible and if yes then could you provide the steps.

like image 377
Magnum23 Avatar asked Oct 19 '25 18:10

Magnum23


2 Answers

Yes, you can update your nx monorepo without upgrading Angular with the next command:

nx migrate latest --to="@nrwl/[email protected]"

Change 13.10.6 with the current version of that package. The side-effect is you can't use the Schematics this package provides.

Restore typescript package to the lastest version compatible with you Angular version

like image 57
Replayattack Avatar answered Oct 22 '25 03:10

Replayattack


You can use:

nx migrate @nrwl/workspace --to="angular/[email protected],angular/[email protected]"
like image 43
marosca Avatar answered Oct 22 '25 05:10

marosca



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!