g. Skud
g. Skud

Reputation: 11

Were upgrading from NG 12 -> 16 and "@ng-bootstrap/ng-bootstrap getting : Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency

When going from 12 -> 13 (eventually 13). perhttps://update.angular.io/?v=12.0-13.0

ng update @angular/core@13 @angular/cli@13

Were getting dependency errors:

We reviewed the Dependencies table at https://www.npmjs.com/package/@ng-bootstrap/ng-bootstrap#demo

and upgraded to ^14.1.0, which created more errors. What is the recommended way to do this. Were considering removing @ng-bootstrap/ng-bootstrap from our package.json and manually upgrading as the maintainers don't seem to support peer deps for upgrade steps.

Upvotes: 1

Views: 877

Answers (1)

James Lawruk
James Lawruk

Reputation: 31363

I ran into the same error. I was able to upgrade Angular 12 to 13 by essentially doing the following:

  1. Uninstalling @ng-bootstrap/ng-bootstrap

    npm uninstall @ng-bootstrap/ng-bootstrap

  2. Updating to Angular 13

    npm run ng update @angular/core@13 @angular/cli@13

  3. Reinstalling a version of ng-bootstrap compatible with Angular 13.

    npm i @ng-bootstrap/[email protected]

Upvotes: 1

Related Questions