sass / sassc-rails

Integrate SassC-Ruby with Rails!
MIT License
707 stars 104 forks source link

incompatibilty with sprocket 4 #150

Open hadmut opened 4 years ago

hadmut commented 4 years ago

Hi, I have a an older rails app making use of sass files, which I just wanted to update. Since sass-rails is outdated, I've replaced it with sassc-rails and found, that it does not compile my sass sources:

% rake assets:precompile rake aborted! Sprockets::FileNotFound: couldn't find file 'applicationtest.sass' with type 'text/css' Checked in these paths: ...

tracking it down revealed that it is just a single minor difference that tell whether things work:

It's in Gemfile.lock

The older version used

sprockets (3.7.2)

and this is working well. After Updating it turned into

sprockets (4.0.2)

and does not work anymore. Just changing the version number in Gemfile.lock changes whether things work smoothly or fail.

Seems as if sassc-rails is not compatible with sprockets 4

regards

omarsotillo commented 3 years ago

This is blocking upgrading to a Rails 6.0.0 and fully going into a webpacker (recommended) approach

ahorek commented 3 years ago

just change

//= require applicationtest.sass

to

//= require applicationtest