ng-bootstrap and Angular 5 compatibility

Viewed 3676

Was ng-bootstrap already tested with Angular 5 and is it compatible ?

If not, any compatible ng-bootsrap angular 5 release planned ?

Thanks !

3 Answers

I don't think ng-bootstrap is supported with Angular 5 yet, this is what I got creating a new app

Tzachs-MBP:src tzachs$ npm install --save @ng-bootstrap/ng-bootstrap
ng4fbbootstrap@0.0.0 /Users/tzachs/personal/login/ng4fbbootstrap
+-- UNMET PEER DEPENDENCY @angular/common@5.0.2
+-- UNMET PEER DEPENDENCY @angular/core@5.0.2
+-- UNMET PEER DEPENDENCY @angular/forms@5.0.2
`-- @ng-bootstrap/ng-bootstrap@1.0.0-beta.5

npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-beta.5 requires a peer of @angular/core@^4.0.3 but none was installed.
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-beta.5 requires a peer of @angular/common@^4.0.3 but none was installed.
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-beta.5 requires a peer of @angular/forms@^4.0.3 but none was installed.

UPDATE: I was not aware that there was a difference between ng-bootstrap and @ng-bootstrap on NPMjs. Of course @ng-bootstrap is what you are talking about, and this is currently dependent on Angular 4.


OLD ANSWER

ng-bootstrap is dependent on Angular 4.

I suggest moving to ngx-bootstrap (ng-bootstrap name change to 'x') that will support all future versions of Angular.

My reference is from the NPMjs page for ng-bootstrap writing that ng-bootstrap package changed name to ngx-bootstrap.

Related