Issue
I have a project which uses Angular 13 and I want to update it to Angular 14.
When I try to update with:
ng update @angular/core@14 @angular/cli@14
I get:
Package "@angular-eslint/schematics" has an incompatible peer dependency to "@angular/cli" (requires ">= 13.0.0 < 14.0.0", would install "14.0.1").
Any ideas on how to avoid this error?
Solution
I have a two suggestions:
Suggestion 1:
- First upgrade the
@angular-eslint/schematicspackage
ng update @angular-eslint/schematics@14
- Upgrade Angular
ng update @angular/core@14 @angular/cli@14
Suggestion 2:
- Remove all
@angular-eslintpackagespackage.jsonfile and runnpm installso the packages would be deleted
npm install
- Upgrade Angular
ng update @angular/core@14 @angular/cli@14
- Add all
@angular-eslintpackages withng add @angular-eslint/schematicscommand:
ng add @angular-eslint/schematics
Answered By - NeNaD
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.