10 Experience
0 Lessons Completed
0 Questions Solved


Posted in Install Bootstrap with Webpack with Rails 6 Beta

@Daniele Deltodesco
Hi. I was just able to fix this. Heroku doesn't seem to mix well with Webpack as it tries to find bootstrap/scss/bootstrap in the app/assets/stylesheets folder. You have to point the import out of the folder to node_modules where Bootstrap stored in.

Make sure that your app/assets/stylesheets/application.css is renamed to application.css.scss and change @import "bootstrap/scss/bootstrap"; to @import "../../../node_modules/bootstrap/scss/bootstrap.scss";

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.