0

I've just created an angular 2 project via angular-cli. Then I added Bootstrap v4 using command npm install [email protected] provided by Bootstrap official site.

Anyway, everything works except for the following error in console window :

Uncaught Error: Bootstrap dropdown require Popper.js (https://popper.js.org)
    at scripts.bundle.js:179
    at scripts.bundle.js:588

I've installed popper.js and added inside .angular-cli.json :

  "scripts": [
    "../node_modules/jquery/dist/jquery.slim.min.js",
    "../node_modules/tether/dist/js/tether.min.js", 
    "../node_modules/popper.js/dist/umd/popper.js",              
    "../node_modules/bootstrap/dist/js/bootstrap.min.js"
  ],

But still the error is there!

0

2 Answers 2

1

I've almost solved the problem using package npm install ngx-bootstrap --save.

Of course it's not the direct way, Nevertheless it works properly.

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

Comments

0

I had the same error.

Try running:

npm install --save [email protected]

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.