12

I am a bit lost in the versioning system of nx (with angular). In my case, I want to upgrade from angular 12 to angular 13 with latest compatible tooling (jest, nx).

Agnular 14 is out now. So if I run the command below, it will update to angular 14.

nx migrate latest

How do I update to latest angular13 with latest compatible jest and other tooling?

What I do not understand is the connection between angular versions and nx versions. How are those two connected in terms of version numbers?

Best regards

yonexbat
  • 2,902
  • 2
  • 32
  • 43

1 Answers1

9

Some months later ... I found this page https://nx.dev/angular-nx-version-matrix It seems the major numbers are connected between angular and nrwl-nx.

For a list of releases of angular-nx version numbers I found this page (maybe there is a better one?): https://github.com/nrwl/nx/releases If you want the latest angular 13, you have to look at previous pages till you find the last version 13.*.

I would also like to share some experience. To migrate from 12.x to 13.10.6 did not work (but to 14 worked out of the box). What we did is migrate to 13.0 first and then 13.10.6 in a second migration.

yonexbat
  • 2,902
  • 2
  • 32
  • 43
  • 3
    Just note, that nx and ng versions don't always match: e.g. `nx migrate 14` will migrate to nx14 which (according to the combat-matrix uses ng13! So to update to the latest ng 14 you must use nx14.6.0 <= nx15.1.1: e.g. `nx migrate 15.1.1` worked for me to update my workspace to nx15.1.1 and ng14 – TmTron Jun 05 '23 at 07:31