Angular Version Update Every Year Be Like π
Every year
Angular:
βA new version is available! π Upgrade now.β
Developer:
Nice! Should be easy. Just ng update.β
5 minutes laterβ¦
ERESOLVE unable to resolve dependency tree
π
Developer:
βOkayβ¦ let's check the dependencies.β
Then you discover:
- Angular needs Node 20
- Your project uses Node 18
- One package needs Angular 17
- Another package only supports Angular 16
- Angular Material wants something else
- Some random library hasn't been updated since 2022 π
So you start upgrading one version at a time:
Angular 17 β 18
π₯ 23 errors
Angular 18 β 19
π₯ 47 errors
Angular 19 β 20
π₯ 89 errors
At this point you're not upgrading the project anymore.
You're negotiating with npm.
Then comes the classic:
npm install --legacy-peer-deps β My Emotional Support Command π
Developer:
βProblem solved.β π
Angular:
βAre you sure about that?β
π
And after 6 hours of debugging...
ng serve
Finally:
β Application bundle generation complete
β Local: http://localhost:4200/
Developer:
βYESSSSS! πβ
Then the browser opens:
ERROR RuntimeError: NG0203
ERROR NG0955
ERROR NG04002
πππ
And the funniest part?
The application was working perfectly yesterday.
The Angular Developer Annual Cycle π
January:
βI'll keep dependencies updated.β
March:
βIt's fine, we'll update later.β
June:
βDon't touch package.json.β
September:
βAngular released a new version.β
October:
βWhy did I do this to myself?β
November:
βEverything works again.β
December:
βNext year I'll update regularly.β
Next year:
π Same story.
Angular version update isn't an upgrade.
It's a yearly boss fight. π
Angular 22 is hereβ¦ You already know my first command. π
Top comments (0)