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

LoadError: cannot load such file -- sassc #12

Closed
tfreedman opened this issue Feb 18, 2022 · 1 comment
Closed

LoadError: cannot load such file -- sassc #12

tfreedman opened this issue Feb 18, 2022 · 1 comment

Comments

@tfreedman
Copy link

tfreedman commented Feb 18, 2022

I have an empty rails 7.0.2.2 app created just now that throws an error when using rails assets:precompile.

$ rails assets:precompile
+ /home/me/.rvm/gems/ruby-3.1.0/gems/dartsass-rails-0.2.0/exe/linux/sass --load-path /home/me/sites/temp/temp/app/assets/stylesheets /home/me/sites/temp/temp/app/assets/stylesheets/application.scss:/home/me/sites/temp/temp/app/assets/builds/application.css

As far as I can tell, sprockets-rails provides the task rails assets:precompile, but isn't aware of dartsass, and is therefore complaining that there's no sass compiler. sassc-rails isn't in my Gemfile, which explains why sprockets is complaining, but adding it defeats the purpose of using dartsass-rails.

Is there some configuration option I'm missing, to presumably tell sprockets to stop handling sass in favor of dartsass-rails?

@dhh
Copy link
Member

dhh commented Feb 19, 2022

Good catch. I've fixed the installer in 1973162.

You need to add builds, remove stylesheets from the manifest. See the commit.

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

2 participants