r/angular • u/Tri_007 • 14d ago
Best way to upgrade a large Angular 13 app (~400 components, multiple UI libs) to Angular 22? Looking for tips and common issues
Hey everyone,
I need to upgrade a large existing project (~400 components) from Angular 13.1 to Angular 22. I Googled around and saw that the standard approach is to go one major version at a time (13 → 14 → 15 ... → 22) using ng update, updating dependencies, and testing after each step.
Before I dive in, I wanted to check with people who have done a big jump like this on a large, older codebase:
- Can I actually do it this way (step-by-step
ng updateacross 9 major versions), or given the old third-party packages here, is it better to spin up a fresh Angular 22 project and migrate the code over? - Any tips or best practices to make this go smoother on a codebase this size?
- What major issues or breaking changes should I watch out for along the way?
For context, we are currently on Node <=14, TypeScript 4.4, and RxJS 6.6, and the app relies heavily on multiple UI and utility libraries:
- UI Frameworks: u/angular
/material(v13),ng-zorro-antd(v12),angular-bootstrap-md(v12), andngx-bootstrap(v7) - State & Core: u/ngrx
/store(v13),ngrx-store-localstorage, u/ngneat/until-destroy - Other heavy libraries:
ckeditor4-angular,quill,ngx-extended-pdf-viewer,angular2-text-mask,ngx-mask,ng2-currency-mask,ng2-search-filter,mat-select-filter,ngx-sortablejs
I'm especially worried about abandoned/unmaintained libraries (angular2-text-mask, ng2-search-filter, ckeditor4-angular, angular-bootstrap-md), the Angular Material MDC migration, and having multiple UI libraries in one app.
Appreciate any advice or war stories!