I recently developed a new rails app using the --skip-webpack-install
option, and while the default bootstrap styles are functioning properly, some of the JavaScript components don't seem to be working as expected.
Even though my application.js file contains jQuery and Bootstrap JS code, adding features like carousels doesn't seem to work. Interestingly, modals do work...
Here's a snippet of my application.js:
// This manifest file will compile all files into application.js
// Any JavaScript/Coffee file in lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//= require jquery3
//= require popper
//= require bootstrap-sprockets
//= require jquery
//= require_tree .
To import this script into the application, I'm using:
<%= javascript_include_tag 'application' %>
This is how my assets.rb looks:
Rails.application.config.assets.precompile += %w( application.js application.scss )
I would greatly appreciate any advice on how to resolve this issue. Feel free to ask for more information if needed :)