ValRob
ValRob

Reputation: 2692

Bootstrap 4 in angular 6, javascript components

I run: npm install --save @ng-bootstrap/ng-bootstrap for installing the the javascript components, and got this:

npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.

and

npm WARN [email protected] requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself.

but the good new is:

So what does it means? should I be worried?

Upvotes: 2

Views: 2278

Answers (2)

JB Nizet
JB Nizet

Reputation: 692071

should I be worried?

No. The jquery and popper js dependencies are only necessary if you use the JS part of Bootstrap. But ng-bootstrap's goal is precisely to replace this jquery-based JavaScript code with native Angular components, that do not depend on anything other than Angular (and RxJS, but Angular also depends on it).

So you should just ignore these two warnings. Bootstrap is needed by ng-bootstrap because it uses the Bootstrap CSS to implement its components and directives. But it doesn't use its JS code.

Upvotes: 2

Antoniossss
Antoniossss

Reputation: 32535

It means you have to install jQuery as well as Bootstrap JS relies on it, unless you are not going to use anything but pure Bootstrap's CSS.

Upvotes: 1

Related Questions