Rails rails7 在引入 boostarp4.6.2 后 引入 popper.js 报错 there is an issue with popper: undefined is not an object (evaluating 'e.Popper=t()')

lobb · 2023年05月11日 · 最后由 lobb 回复于 2023年05月16日 · 207 次阅读

there is an issue with popper: undefined is not an object (evaluating 'e.Popper=t()')

使用 boostarp v5 popper.js 就能正常使用

请问如何正确使用 boostarp4.6.2 呢?

改用 bootstrap.bundle.min.js 文件 取消 poper.js 的引用

1,下载 bootstrap.bundle.min.js 文件到 gems 的 boostarp4.6.2 文件 JavaScripts 里

2,修改对应的引入文件为 bootstrap.bundle.min.js

需要 登录 后方可回复, 如果你还没有账号请 注册新账号