-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to upgrade to Angular 11 gives incompatible peer dependency errors #1938
Comments
It seems that this project is not maintained any more. That's why it has out-dated Angular version requirements (not greater than 8.0). But you can always skip all these version checks:
|
the latest version |
Yes, it works without issues but it contains outdated requirement about Angular version (version <=8) and that aborts migration using ng update |
Any solution found. $ npm install @agm/core npm ERR! A complete log of this run can be found in: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Actually same issue with Angular 12 : npm install @agm/core
npm ERR! code ERESOLVE
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@"~12.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^9.1.0 || ^10.0.0" from @agm/[email protected]
npm ERR! node_modules/@agm/core
npm ERR! @agm/core@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! /.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! .npm/_logs/2021-10-18T15_19_36_748Z-debug.log |
same issue with angular 13 |
|
My advice is to migrate to Angular Material Google Map which offers similar functionality |
Thanks for the advice! I'll try it |
npm ERR! code ERESOLVE npm ERR! A complete log of this run can be found in: |
Issue description
Project is on Angular 10. Trying to upgrade to Angular 11, but getting incompatible peer dependency errors from agm. They don't seem to be resolved by upgrading agm to 1.1.0.
Steps to reproduce and a minimal demo of the problem
$ ng update @angular/core @angular/cli
[...]
Package "@agm/core" has an incompatible peer dependency to "@angular/common" (requires "^6.0.0 || ^7.0.0 || ^8.0.0" (extended), would install "11.2.7").
Package "@agm/core" has an incompatible peer dependency to "@angular/core" (requires "^6.0.0 || ^7.0.0 || ^8.0.0" (extended), would install "11.2.7").
[...]
angular-google-maps, Angular, & any other relevant dependency versions
Angular: 10.2.1
agm: 1.0.0
Possible duplicate of #1932 but with ng (yarn) instead of npm?
The text was updated successfully, but these errors were encountered: