Ayushi Tomar
Ayushi Tomar

Reputation: 245

Bootstrap not compatible with angular 5

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?

enter image description here

Upvotes: 1

Views: 1456

Answers (3)

Leo
Leo

Reputation: 10813

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".

Upvotes: 2

Ayushi Tomar
Ayushi Tomar

Reputation: 245

I used ngx-bootstrap which is compatible as ng-bootstrap is not compatible

Upvotes: 0

Kyle Krzeski
Kyle Krzeski

Reputation: 6527

You should be using ng-bootstrap instead of regular old bootstrap...

Try this:

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

source: ng-bootstrap docs

Upvotes: 0

Related Questions