foundation / foundation-rails

Foundation for Rails
foundation.zurb.com
MIT License
1k stars 376 forks source link

Updating 6.5.1.0 require 'sprockets/es6' isn't working have to change to require 'sprockets/rails' #273

Closed brianmcoates closed 5 years ago

brianmcoates commented 5 years ago

When I updated to 6.5.1.0 and then start my rails sever I get

/lib/ruby/gems/2.3.0/gems/foundation-rails-6.5.1.0/lib/foundation-rails.rb:2:in `require': cannot load such file -- sprockets/es6 (LoadError)

to fix this I had to change the require to

 require 'sprockets/rails' 
khiet commented 5 years ago

I had this a few days ago, you can add gem 'sprockets-es6' to you Gemfile. I know it's not documented and annoying 😭 This seems to be the commit that introduced this: https://github.com/zurb/foundation-rails/commit/a6c927db5f604d8d3e2e741389455b69d4c7aff2#diff-44263267796d33ed2765ce27a5ba5f3c

brianmcoates commented 5 years ago

@khiet Thank you! Yeah it seemed that they might have wanted to update to sprocket-rails but I'm not sure.

farkroft commented 5 years ago

Hi

thank you, i have searched this for a while and know i can continue my app

cheers