Having some problems installing bootstrap onto my rails project.
howing /Users/muhname/Photogur/app/views/layouts/application.html.erb where line #10 raised:
couldn't find file 'bootstrap-sprockets' with type 'application/javascript'
my application.js file:
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require bootstrap-sprockets
//= require turbolinks
//= require_tree .
my css:
/ *= require bootstrap_and_overrides
/ *= require_tree .
/ *= require_self
/ /*
@import "bootstrap"
gem: 'bootstrap-sass', '3.0.2.1'
Anybody who might know what the issue is? thanks!
Try removing bootstrap-sprockets from your application.js. It doesn't need to be there, and it's creating the error.
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require turbolinks
//= require_tree .
I had the same issue:
couldn't find file 'bootstrap-sprockets' with type 'application/javascript'
The only solution was to comment off:
# gem 'sass-rails', '~> 5.0'
And add instead:
gem 'sass-rails', '>= 3.2'
In the Gemfile
, I hope this helps other members.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With