joshuajansen / bulma-rails

350 stars 46 forks source link

Undefined variable: "$body-background" #20

Open alfiehub opened 7 years ago

alfiehub commented 7 years ago

I've followed the steps described in the README and added @import "bulma"; to application.scss, but I'm receiving a Sass::SyntaxError whenever I attempt to load a page.

Do you have any idea of what the issue might be?

I have added both sass and sass-rails gems to my Gemfile and I'm using rails 4.2.8 and ruby 2.4.1

Edit: I've identified the problem. Commenting out this line in my config/initializers/assets.rb solved it Rails.application.config.assets.precompile += %w(*.js *.css *.scss *.sass)

Precompiling stuff apparently fucks it up. Is there any solution to this?

miguelsan commented 6 years ago

Are you sure that it is not a syntax related problem? Bulma's example is SASS, not SCSS (see my PR).