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

Reported as incompatible dependency when using ng cli #120

Open
maitredede opened this issue Aug 27, 2021 · 0 comments
Open

Reported as incompatible dependency when using ng cli #120

maitredede opened this issue Aug 27, 2021 · 0 comments

Comments

@maitredede
Copy link

Describe the bug
When trying to upgrade angular from 8 to 9 following angular upgrade guide (uses ng cli) :

Package "angular-user-idle" has an incompatible peer dependency to "@angular/common" (requires "^6.0.0 || ^12.0.0" (extended), would install "9.1.13")

To Reproduce
Steps to reproduce the behavior:

  1. Create an angular 8 projet, add the lib as dependency
  2. Ugrade to angular 9 : ng update @angular/core@9 @angular/cli@9 --force
  3. Fails with npm error

Expected behavior
Upgrade should perform without the dependency error

Additional context
Using node 12.

Idea
The dependency semver is "^6.0.0 || ^12.0.0" (major v6 or major v12). Should not it be something more like >=^6.0.0 && <= ^12.0.0 (between major 6 and major 12 included) ?

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

Successfully merging a pull request may close this issue.

1 participant