I had an Ionic 6 app for over 6 months and it was using Angular 13 and now when I want to install some npm packages, they are being compatible with Angular 15. For example:
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~13.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^15.0.0" from [email protected]
Is there a way to upgrade the Ionic 6 to use the Angular 15 version?
Run command
ng update
and it will update for you. First make sure your repository is clean by committing or stashing your changes (if using version control).