New Discussion

Notifications

You’re not receiving notifications from this thread.

File to import not found or unreadable: bootstrap-sprockets on rails 5.2.0

4
Gems / Libraries

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.

Bootstrap Sprockets is a gem that provides the JavaScript files required by Bootstrap to be included in your Rails application using the Sprockets asset pipeline.

File to import not found or unreadable: default It's looking for a file called default in scssand is unable to do so

It can't find a default file in scss.

It can't find a default file in scss.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 88,440+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.