After upgrading my angular app to the latest version, Angular 18, I encountered an issue where there is no compatible version of ng-bootstrap
available for Angular 18.
While trying to resolve dependencies, I came across the following errors:
npm error Found: @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="117f763c737e7e6562656370615120273f213f21">[email protected]</a>
npm error node_modules/@angular/common
npm error @angular/common@"18.0.6" from the root project
npm error peer @angular/common@"^18.0.0 || ^19.0.0" from @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4122252a0170796f716f77">[email protected]</a>
npm error node_modules/@angular/cdk
....
Unfortunately, I could not find a compatible version:
npm error peer @angular/common@"^17.0.0" from @ng-bootstrap/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="533d347e313c3c2720272132231362657d637d63">[email protected]</a>
npm error node_modules/@ng-bootstrap/ng-bootstrap
npm error @ng-bootstrap/ng-bootstrap@"16.0.0" from the root project
npm error
npm error Conflicting peer dependency found:
npm error node_modules/@angular/common
npm error peer @angular/common@"^17.0.0" from @ng-bootstrap/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0beb7fdb2bfbfa4a3a4a2b1a090e1e6fee0fee0">[email protected]</a>
npm error node_modules/@ng-bootstrap/ng-bootstrap
npm error @ng-bootstrap/ng-bootstrap@"16.0.0" from the root project
I am working with a nx workspace that has more than three apps and some libs. Does anyone have any suggestions on the best way to handle this situation?