-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
assets:precompile results in LoadError: cannot load such file -- sassc #3450
Comments
This seems to be because the Sass gem cannot process modern CSS syntax used by Tailwind, as mentioned by the Rails team here. Unfortunately, RailsAdmin seems to depends on |
Yeah, hence the bug report. 🙃 |
By default RailsAdmin will use asset pipeline for delivering its assets, so it requires sassc-rails dependency. But you can eliminate that dependency by configuring RailsAdmin to use Webpack for asset delivery. Running If you need more information, see #3414 or ask any questions here. |
FWIW I also came across the sassc dependency issue whilst trying to compress the Tailwind 3 styles. My solution was to create a custom Sprockets compressor that uses CSSO for minification: rails/tailwindcss-rails#82 (comment) |
Please report back if you still have an issue. |
Does anyone have a workaround that works with esbuild? I don't really want to switch to Webpack. edit: seems like it works by setting |
New Rails 7 app using
esbuild
withtailwind
with therails_admin
gem.When I run
rake assets:precompile
I'm gettingLoadError: cannot load such file -- sassc
I removed the
sassc-rails
gem due a SaasC syntax error.The only non-vanilla gem I'm adding is
rails_admin
and it's throwing the Load Error.Here's the full output of precompiling locally...
And here's the output from Heroku...
Removing the rails_admin gem resolves the issue.
Additional context
rails
version: 7.0.0rails_admin
version: 3.0.0.alphaThe text was updated successfully, but these errors were encountered: