Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run bootsrap : couldn't find file 'bootstrap-sprockets' with type 'application/javascript'

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!

like image 560
icecreamrabbit Avatar asked Jul 12 '15 18:07

icecreamrabbit


2 Answers

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 .
like image 72
Elvn Avatar answered Nov 17 '22 09:11

Elvn


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.

like image 29
tzurcan Avatar answered Nov 17 '22 10:11

tzurcan