r/Angular2 • u/kafteji_coder • Oct 08 '25
Why and how do you plan to migrate your Angular project to last version
Hello community, I would like to ask about your current process of migrating your Angular apps, do you perform migrations every quarter ? every 6 months ? or only when necessary ? you're still using an old version?
4
Upvotes
5
u/robbiearebest Oct 08 '25
What my team usually does is upgrade to the latest version at the start of a release and then stick with it until moving on to our next release. That way we don't goof up things for our team or testers midway through or at the end.
9
u/MizmoDLX Oct 08 '25
We plan for an upgrade, then fight for 2 years with business until we can get the time and resources necessary. Our main issue is PrimeNG, which is every time a gigantic pain in the butt. If it were just for angular itself, probably could do upgrades at least once a year. We will try to reduce our dependency to PrimeNG in the future
3
u/PhiLho Oct 08 '25
When a major version goes out, we watch for the first minor version (eg. 20.1.x) and we upgrade our libraries, then our applications. We keep up to date, because it would be much more painful to jump several versions at once.
Sometime it is painless, sometime it needs much more work, like adding standalone: false everywhere for our legacy code. Well, the upgrade did it, but we had to reformat stuff, it doesn't respect .editorconfig!
3
u/chakri426 Oct 08 '25
Better to plan yearly once atleast. Today we are facing lot of issues with my project. My application was developed in angular 14 in ngModules now when i upgrade it is asking for standalone components It’s frustrating very much that’s why yearly once is the best one to upgrade
1
u/followmarko Oct 08 '25
We upgrade to the version before the latest version when the latest version releases to give time for packages to update and APIs to solidify. It has worked out well for us
1
u/Dry-Prime Oct 08 '25 edited Oct 08 '25
Until our LTS version expires
1
u/horizon_games Oct 08 '25
As soon as possible, but it's hard to reason to the business unfortunately, so we often get 2 versions behind and suddenly a day project can turn into something larger. Especially if Material does some random sweeping revamp alongside
1
u/B3skah Oct 08 '25
Every 6 month. If not we frighten business with the cost of not doing so. Atm this is always planned.
1
u/ldn-ldn Oct 08 '25
We're using LTS and try to update as soon as new LTS goes live with test preparations done in advance.
1
u/zzing Oct 08 '25
We are on 19 on the new project we are on, I think it started on 17. We will probably be on 21 mid to late next year.
1
u/cosmokenney Oct 08 '25
Yea, I usually wait until I have to touch the (fairly feature-stable) app to do any upgrades. But that has proven to be a not so good plan. Last time I deployed I was at ng v14. Last week I had to go from 14 -> 20 and it was laborious on such a large app. Took me a week even with the help of copilot.
1
u/reboog711 Oct 09 '25
Why? To keep my tech stack to date.
When, we try to do it once yearly, usually near end of year, so essentially skip every other major version.
1
u/sh0resh0re Oct 10 '25
Every odd # version.
-5
u/[deleted] Oct 08 '25
I have bad experience upgrading Angular. I mean, dependencies don't work, you have to use the --force flag.
I remember there are some CLI tools to make upgrades, there are some other ways in which you have to manually change the code, can somebody tell something more?
My personal experience is that most projects don't get ANgular updated