I'm using Angular 8 and I'm facing most of the time an issue like below with incompatible peer dependencies. I'm wondering what's the best way to do?
ng update --all
Package "ngx-cookie-service" has an incompatible peer dependency to "@angular/core" (requires ">=4.2.0", would install "9.0.0-next.5").
Package "ngx-cookie-service" has an incompatible peer dependency to "@angular/platform-browser-dynamic" (requires ">=4.2.0", would install "9.0.0-next.5").
Package "ngx-cookie-service" has an incompatible peer dependency to "@angular/platform-browser" (requires ">=4.2.0", would install "9.0.0-next.5").
Package "@auth0/angular-jwt" has an incompatible peer dependency to "@angular/common" (requires ">=6.0.0", would install "9.0.0-next.5").
What I do is forcing the update ng update --all --force but I'm sure there is a better way to do it. When I force update I need to change the TypeScript version in packages.json file. The version is often too "advanced"
Sometimes updating dependencies one by one with ng update @angular/material for example works (not all the time).
Any idea?
9.0.0-next.5to be>=4.2.0or>=6.0.0. You can see this by playing with e.g. semver.npmjs.com. But without--next=true,ng updateshouldn't update to the pre-release version.ng update @angular/material --next=falseI receive the same error.