Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatibilty with sprocket 4 #150

Open
hadmut opened this issue Jul 12, 2020 · 2 comments
Open

incompatibilty with sprocket 4 #150

hadmut opened this issue Jul 12, 2020 · 2 comments

Comments

@hadmut
Copy link

hadmut commented Jul 12, 2020

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
Copy link

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

@ahorek
Copy link

ahorek commented Dec 17, 2020

just change

//= require applicationtest.sass

to

//= require applicationtest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants