Save 36% for Black Friday! Learn more



50 Experience
0 Lessons Completed
0 Questions Solved


I have following problem. "File to import not found or unreadable: bootstrap-sprockets."

Following gems I have installed
gem 'bootstrap' gem 'bootstrap-sass', '~> 3.3.7'
gem 'sass-rails', '>= 3.2'

File: Application name change from css to scss. In the application.scss file I add the lines

@import "bootstrap-sprockets";
@import "bootstrap";

I bundle install and afterwards restart the server. But still the same error message. It will be great if somebody had the same issue and found a solution, all written solutions on stackoverflow doesn't work.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.