angular-material-extensions / google-maps-autocomplete

Autocomplete input component and directive for google-maps built with angular and material design |
https://angular-material-extensions.github.io/google-maps-autocomplete
MIT License
169 stars 60 forks source link

Unable to resolve dependency tree #316

Closed geraldosalazar16 closed 3 years ago

geraldosalazar16 commented 3 years ago

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

macOS Sierra

Versions

Angular CLI: 11.0.7 Node: 15.12.0 OS: darwin x64

Angular: 11.0.9 ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.1100.7 @angular-devkit/build-angular 0.1100.7 @angular-devkit/core 11.0.7 @angular-devkit/schematics 11.0.7 @angular/cli 11.0.7 @schematics/angular 11.0.7 @schematics/update 0.1100.7 rxjs 6.6.6 typescript 4.0.7

Repro steps

Create a brand new angular project with nd new Run ng add @angular-material-extensions/google-maps-autocomplete

The log given by the failure

An unhandled exception occurred: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: test@0.0.0 npm ERR! Found: @angular/common@11.0.9 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~11.0.3" from the root project npm ERR! peer @angular/common@"^11.0.2" from @angular-material-extensions/google-maps-autocomplete@6.2.0 npm ERR! node_modules/@angular-material-extensions/google-maps-autocomplete npm ERR! @angular-material-extensions/google-maps-autocomplete@"" 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/core@3.0.0-beta.0 npm ERR! node_modules/@agm/core npm ERR! @agm/core@"^3.0.0-beta.0" from the root project npm ERR! peer @agm/core@"^3.0.0-beta.0" from @angular-material-extensions/google-maps-autocomplete@6.2.0 npm ERR! node_modules/@angular-material-extensions/google-maps-autocomplete npm ERR! @angular-material-extensions/google-maps-autocomplete@"" 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! See /Users/geraldosalazar/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/geraldosalazar/.npm/_logs/2021-03-28T04_09_17_505Z-debug.log Package install failed, see above. See "/private/var/folders/ng/nfwwc54d4gn6028lf89krgrr0000gq/T/ng-yQD4HV/angular-errors.log" for further details.

Desired functionality

It should get installed with no errors

Mention any other details that might be useful

azamips commented 3 years ago

I'm facing this same issue. Any update on this?

AnthonyNahas commented 3 years ago

I think this is related to the agm core module...

however.. did you try the latest version ?

which version are you using ?

AnthonyNahas commented 3 years ago

Please use the latest version of the library

thank you