rails / sass-rails

Ruby on Rails stylesheet engine for Sass
MIT License
859 stars 333 forks source link

Sass::SyntaxError: Undefined variable: "$break-sm" undefined #405

Closed davidpatters0n closed 5 years ago

davidpatters0n commented 7 years ago

I'm having a problem whereby when I run: Rails.application.assets.find_asset('foundation_emails').to_s in my Rails test console it throws:

Loading test environment (Rails 4.2.8)
irb(main):001:0> Rails.application.assets.find_asset('foundation_emails').to_s
Sass::SyntaxError: Undefined variable: "$break-sm".

The above error appears to be very similar to the following issues #333 #379 #396. Issue #396 goes into a bit more depth and it appears as though the issue was moved to a sprockets issue https://github.com/rails/sprockets/issues/474. The latest comment on this issue suggest upgrading to version 3.0 of sprockets. This suggestion appears doesn't appear to not work.

I've also put together a dummy app: https://github.com/davidpatters0n/testApp for reference.

adam-e-trepanier commented 7 years ago

Having same issue. In a current application I work on we use the font-awesome-sass gem. I stepped thru the gem and it loads all asset paths and the @imports are working correctly. One file can not see the variables of another sass file.