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

sprocket 4 breaks sassc #690

Closed
hadmut opened this issue Jul 12, 2020 · 3 comments
Closed

sprocket 4 breaks sassc #690

hadmut opened this issue Jul 12, 2020 · 3 comments

Comments

@hadmut
Copy link

hadmut commented Jul 12, 2020

Hi,

I was just trying to update a rails application with bundle update and ran into a problem (using Ubuntu 18.04 with ruby 2.5.1p57.

The rails app includes sass style sheets (I do prefer sass over scss), which was working when using the app for the last time. Nowadays the gem sass-rails is outdated and deprecated, therefore I uses sassc-rails.

After upgrading I could not precompile the assets anymore:

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

After tracking this down step by step, I found that just a single difference in Gemfile.lock causes the problem:

sprockets (3.7.2) works and compiles the sass
sprockets (4.0.2) does not work, issues that error message.

@KomalDhanwani
Copy link

I have also same issue

@hmdne
Copy link

hmdne commented Aug 3, 2020

I think you can fix this problem by using a name "applicationtest", not "applicationtest.sass" as a require.

@schneems
Copy link
Member

Hello! Thanks for opening up an issue. In order to move forwards with this issue I'll need an example app that reproduces the behavior (https://www.codetriage.com/example_app).

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

4 participants