question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failed to update to angular 11

See original GitHub issue

Bug Report or Feature Request (mark with an x)

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

OS and Version?

Ubuntu 20.10

Repro steps

I tried to update my project to use angular 11, but couldn’t because npm failed to resolve the dependency tree.

Package.json

...
"dependencies": {
    "@angular/animations": "~11.0.7",
    "@angular/cdk": "^11.0.3",
    "@angular/common": "~11.0.7",
    "@angular/compiler": "~11.0.7",
    "@angular/core": "~11.0.7",
    "@angular/fire": "^6.1.4",
    "@angular/flex-layout": "^11.0.0-beta.33",
    "@angular/forms": "~11.0.7",
    "@angular/material": "^11.0.3",
    "@angular/platform-browser": "~11.0.7",
    "@angular/platform-browser-dynamic": "~11.0.7",
    "@angular/router": "~11.0.7",
    "@ionic/angular": "^5.5.2",
    "@ngneat/until-destroy": "^8.0.3",
    "firebase": "^8.2.2",
    "ngx-auth-firebaseui": "^5.0.1",
    "rxjs": "~6.5.4",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.3"
}
...

The log given by the failure

npm install

npm ERR! Found: @angular/cdk@11.0.3
npm ERR! node_modules/@angular/cdk
npm ERR!   @angular/cdk@"^11.0.3" from the root project
npm ERR!   peer @angular/cdk@"^11.0.0" from ngx-auth-firebaseui@5.0.1
npm ERR!   node_modules/ngx-auth-firebaseui
npm ERR!     ngx-auth-firebaseui@"^5.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/cdk@"^10.1.3" from @angular-material-extensions/password-strength@7.0.0
npm ERR! node_modules/@angular-material-extensions/password-strength
npm ERR!   peer @angular-material-extensions/password-strength@"^7.0.0" from ngx-auth-firebaseui@5.0.1
npm ERR!   node_modules/ngx-auth-firebaseui
npm ERR!     ngx-auth-firebaseui@"^5.0.1" 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.

It seems like updating @angular-material-extensions/password-strength to ^8.0.0 should fix the issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stevenhatfieldcommented, Mar 4, 2021

Same here @AnthonyNahas … it’s the v7 password-strength dependency that has a peer dependency on Angular v10, which it can’t find. It should be easy enough to update it to v8, which works with Angular v11. This is happening in ngx-auth-firebaseui v5.1.0

0reactions
AnthonyNahascommented, Feb 15, 2022

this is already fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to update Angular from 10 to 11 due to dependency ...
1- go to Nodejs website and update your version to the latest LTS version. · 2- go to your OS command line and...
Read more >
Angular update fails from 11 to 12 | Infragistics Forums
we tried different approaches to update from angular 11 to 12. Unfortunately, it looks like there is an internal issue with the library....
Read more >
Issue during update existing project on Angular 11 to version 12
It looks like the error is coming from the CLI code, so I'm transferring the issue to the CLI repo for further investigation....
Read more >
Angular 10 to 11 update guide
Guide to update your Angular application v10.0 -> v11.0 for basic applications. Before you update. You don't need to do anything before moving...
Read more >
Guide to update your Angular application v11.0 -> v12.0 for ...
Guide to update your Angular application v11.0 -> v12.0 for advanced applications ... Add null checks to avoid TypeScript failing with type errors....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found