Dependency version mismatch prevents installation with Angular 21
I’m encountering a dependency resolution issue when installing the latest version of ng-bootstrap in an Angular 21 project.
The package fails to install under normal conditions due to peer dependency conflicts, and I’m currently forced to use --force or --legacy-peer-deps to proceed.
Environment:
Angular: 21.x ng-bootstrap: latest (20.0.0)
Steps to reproduce:
Create a new Angular 21 project
Run:
npm install @ng-bootstrap/ng-bootstrap Observe dependency resolution error
Actual behavior:
Installation fails due to peer dependency mismatch Requires --force or --legacy-peer-deps
Expected behavior:
Package should install without forcing dependency resolution Peer dependencies should support Angular 21
Additional context: This seems to be caused by outdated or restrictive peer dependency versions that don’t yet include Angular 21 compatibility.
Please let me know if Angular 21 is officially supported or if there’s a recommended workaround.
Source: ng-bootstrap/ng-bootstrap