1

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

3
  • try to install ng-bootstrap like this npm install --save @ng-bootstrap/ng-bootstrap Commented Dec 4, 2017 at 12:16
  • You are NOT install ng-bootstrap. To install bootstrap install jquery and popper colinstodd.com/blog/post/…. If you want install ng-bootstrap just npm install --save @ng-bootstrap/ng-bootstrap Commented Dec 4, 2017 at 12:20
  • if you not know the difference between bootstrap and ng-bootstrap check ng-bootstrap.github.io/#/getting-started Commented Dec 4, 2017 at 12:21

3 Answers 3

2

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

Try this:

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

source: ng-bootstrap docs

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.