Bootstrap 4:未捕获的ReferenceError:未定义Popper [英] Bootstrap 4: Uncaught ReferenceError: Popper is not defined
问题描述
我使用Node和Gulp安装了Bootstrap 4,在运行应用程序时出现以下错误
未捕获的ReferenceError:Popper是未定义
到目前为止我只使用过Bootstrap网格系统而且我没有使用任何需要Bootstrap JS的东西。在我看来像Bootstrap缺少一些东西或我没有正确安装(说实话,这可能是我) - 有没有其他人遇到同样的问题或知道修复?
自我们的Bootstrap beta 2发布以来,我们添加了两个新的dist文件: bootstrap.bundle.js
和 bootstrap.bundle.min.js
里面包含 Popper.js
使用此链接查找Popper.js的最新版本: https://cdnjs.com/libraries/popper.js 因为上面的链接版本(1.8.2)很旧,最新的是1.12.9
<你应该选择Popper.js的UMD版本,因为它是Bootstrap使用的版本
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?
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
这篇关于Bootstrap 4:未捕获的ReferenceError:未定义Popper的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!