I am using Angular 5. After installing ng-bootstrap there are few errors. Is ng-bootstrap not compatible with Angular 5, or are their any other packages that are compatible?
3 Answers
Update:
ng-bootstrap is now compatible with Angular 5 (since 5 Nov).
You may indeed be right about ng-bootstrap not being compatible with Angular 5:
Dependencies
- Angular (tested with 4.0.3)
- Bootstrap 4 (tested with 4.0.0-beta.2)
But I can verify npm install [email protected] is compatible with angular modules @5.0.5, along with [email protected], [email protected] and [email protected] here.
(Also no issues with my .angular-cli.json loading a custom styles.scss, which I use for a few selective imports like @import "~bootstrap/scss/functions".
Comments
You should be using ng-bootstrap instead of regular old bootstrap...
Try this:
npm install --save @ng-bootstrap/ng-bootstrap source: ng-bootstrap docs

npm install --save @ng-bootstrap/ng-bootstrap