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

lobb · May 11, 2023 · Last by lobb replied at May 16, 2023 · 207 hits

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

You need to Sign in before reply, if you don't have an account, please Sign up first.