Skip to content
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

Error when trying to install latest version on Angular 10 #61

Closed
MauricioPaez opened this issue Mar 26, 2021 · 6 comments
Closed

Error when trying to install latest version on Angular 10 #61

MauricioPaez opened this issue Mar 26, 2021 · 6 comments

Comments

@MauricioPaez
Copy link

MauricioPaez commented Mar 26, 2021

Describe the bug
Hi there! I am getting an error when installing the extension. When I install it through npm i @angular-material-extensions/select-country, the version installed is "@angular-material-extensions/select-country": "3.0.4" and this version does not have the callingCode property in the Country interface. When I try to install like npm i @angular-material-extensions/select-country@latest the following error is shown

image

When I run ng version I get this:

`Your global Angular CLI version (11.2.6) is greater than your local version (10.0.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

Angular CLI: 10.0.4
Node: 14.16.0
OS: win32 x64

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

Package Version

@angular-devkit/architect 0.1000.4
@angular-devkit/build-angular 0.1000.4
@angular-devkit/build-optimizer 0.1000.4
@angular-devkit/build-webpack 0.1000.4
@angular-devkit/core 10.0.4
@angular-devkit/schematics 10.0.4
@angular/cdk 10.1.0
@angular/cli 10.0.4
@angular/flex-layout 10.0.0-beta.32
@angular/material 10.1.0
@angular/material-moment-adapter 10.1.0
@ngtools/webpack 10.0.4
@schematics/angular 11.2.6
@schematics/update 0.1000.4
rxjs 6.6.0
typescript 3.9.7
webpack 4.43.0`

To Reproduce
Steps to reproduce the behavior:

  1. Create/test on an angular project with an angular cli version greater than 9.
  2. Install the extension
  3. Check the version of the extension installed
  4. Try to install using the @latest flag

Expected behavior
Install the latest version of the extension in a project that uses Angular 10.

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
Well, as for additional information I can say that I am running a project that already uses angular material components and that hasn't had any other issues installing other packages so far. Please excuse me if I am being too shallow in providing information, I am quite new to reporting bugs for this kind of project.

@MauricioPaez
Copy link
Author

Also, planing on upgrading application to Angular 11, will this be an impediment on using the extension? Cheers and thanks in advance for your help (:

@nouhouari
Copy link

Same issue for me with angular 10.2.4 version.
image

@nouhouari
Copy link

Same issue for me with angular 10.2.4 version.
image

I'm able to install it by forcing the installation.

@AnthonyNahas
Copy link
Member

The library has peer dependencies to angular material v11, so I thnink to use the lib you should update your dependencies...

@nouhouari
Copy link

The library has peer dependencies to angular material v11, so I thnink to use the lib you should update your dependencies...

What if we can't?

@AnthonyNahas
Copy link
Member

Please use --force while installing if you don't have the right peer dependencies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants