Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 4: Uncaught ReferenceError: Popper is not defined

I've installed Bootstrap 4 using Node and Gulp and when running the application I get the following error

Uncaught ReferenceError: Popper is not defined

I've only been using the Bootstrap grid system so far and I haven't used anything that would require the Bootstrap JS. Looks to me like Bootstrap is missing something or I haven't installed it correctly (to be honest it's probably me) - has anyone else come across the same issue or know a fix at all?

like image 608
Web Develop Wolf Avatar asked Oct 26 '17 11:10

Web Develop Wolf


2 Answers

Since our Bootstrap beta 2 release, we added two new dist files : bootstrap.bundle.js and bootstrap.bundle.min.js which contain Popper.js inside

Plus use this link to find the latest release of Popper.js : https://cdnjs.com/libraries/popper.js because the above linked release (1.8.2) is very old, latest is 1.12.9

BTW you should choose the UMD release of Popper.js because it's the one used by Bootstrap

like image 54
Johann-S Avatar answered Sep 20 '22 23:09

Johann-S


Use bootstrap.bundle.js that already has popper.js NPM path 'bootstrap/dist/js/bootstrap.bundle.js'.

like image 28
Anuj Dhanju Avatar answered Sep 19 '22 23:09

Anuj Dhanju