Miroo
Miroo

Reputation: 805

Upgrading angular from 9 to 12

I am trying to upgrade our angular application from 9 to 12 but i understnad we have to do it one release at a time so i am still stuck in step 1 from 9 to 10 I run ng update

@angular/core@10 @angular/cli@10 --allow-dirty -- force and then ng update @angular/material@10 --allow-dirty --force 

and then when i compile i get lots of errors in other packages but so i do ng update for those packages too but this method doesn't seem to work well, i have been doing this for 3 days and every time i hit a dead end and start over, is there any statigy for easy fool proof way to upgrade

TIA

Upvotes: 2

Views: 6703

Answers (2)

Njuguna_nc
Njuguna_nc

Reputation: 297

First need to upgrade to 10 then 11 then 12...latest

You can check Angular Update Guide for upgrade commands.

Upvotes: 1

Mr. Kumar
Mr. Kumar

Reputation: 26

I've recently upgraded a project from Angular from 8 to 11 and I got a lot of help from Click Here! It might help you.

Upvotes: 1

Related Questions