Search code examples
angularpackage.jsonngxs

npm ERR! ngx-bootstrap@"^12.0.0" from the root project


I am upgrading to Angular 16; However, I don't know which version I should modify for the dependencies below:

npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"^16.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/animations@"^17.0.0" from [email protected]
npm ERR! node_modules/ngx-bootstrap
npm ERR!   ngx-bootstrap@"^12.0.0" from the root project

Here is the package.json

"dependencies": {
        ...
        "@angular/animations": "^16.2.0",
        "ngx-bootstrap": "^12.0.0",
        ...
    },

Can you explain to me how I can solve this problem?


Solution

  • Downgrade ngx-bootstrap to v11.

    v12 requires Angular v17.