I\'ve installed Bootstrap 4 using Node and Gulp and when running the application I get the following error
Uncaught ReferenceError: Popper is not def
For those struggling with this issue on Webpack: In your entry file,
import 'bootstrap' does give the error. You need to remove that and replace it with import 'bootstrap/dist/js/bootstrap.bundle.js'
This is sufficient and you don't need to import Popper separately. That applies for bootstrap 4.0.0.beta2
For those who are here and trying to add popper v2 to Laravel
"popper.js": "^1.12"
,
so remove this string@popperjs
scope name. If you have any v1 poppers used in project follow the migrate guide v1 to v2 from doc. UPD: this sht is required by bootstrap. so, i had to reinstall it after remove. skip this step.npm i @popperjs/core
window.Popper = require('@popperjs/core')
npm run dev
let _instance = Popper.createPopper(element, tooltip, {})