Closed umk1 closed 2 years ago
Sounds like you'll probably need jsbundling-rails
the way you're going with JavaScript. Have a look here: https://github.com/rails/jsbundling-rails/
Even after installing jsbundling-rails, components like navbar aren't working.
Hello, I have started learning Ruby on Rails recently. I tried to install Bootstrap 5 with Rails 7 using this gem. The bootstrap framework is installed, but JavaScript is not working and no dropdown menu is displayed. I tried with Navbar sample code from bootstrap website (https://getbootstrap.com/docs/5.1/components/navbar/ ), but drop-down in the Navbar does not work. Tried on Firefox browser and Google Chrome.
I did installation exactly as per instructions.
Google Chrome terminal gives this error. Uncaught TypeError: Failed to resolve module specifier "bootstrap". Relative references must start with either "/", "./", or "../".
Thanks.