-
-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap 4.6.2 popper issue #257
Comments
I also met this problem. Has it been solved? |
I was seeing the same Popper JS error and noticed that my project was loading Bootstrap 5 instead of 4, regardless of my Hopefully this information helps others! |
Also seeing this issue, did anyone find a fix? |
I was able to work around this bug by using the bundled JS version of Bootstrap ( Gemfile
application.scss
Importmap
asset.rb
application.js
Hope this helps! |
Ruby 3.1.3
Rails 7.0.4.3
using import maps and sprockets (without nodejs).
gem 'bootstrap', '~> 4.6', '>= 4.6.2'
there is an issue with popper: undefined is not an object (evaluating 'e.Popper=t()')
when change to bootstrap 5v, the issue disappear. (same config just different gem version)
config/importmap.rb
pin 'popper', to: 'popper.js', preload: true
pin 'bootstrap', to: 'bootstrap.min.js', preload: true
app/assets/stylesheets/application.scss
@import 'bootstrap';
app/javascript/application.js:
//= require jquery3
//= require popper
//= require bootstrap
The text was updated successfully, but these errors were encountered: