Bootstrap 4: Uncaught ReferenceError: Popper is not defined

后端 未结 8 1232
猫巷女王i
猫巷女王i 2020-11-27 17:23

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

8条回答
  •  日久生厌
    2020-11-27 18:03

    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

提交回复
热议问题