-
Notifications
You must be signed in to change notification settings - Fork 86
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
"Don't know how to build task 'assets:precompile'" when used without sprockets #58
Comments
May I ask how you get your assets served if not through sprockets or propshaft? |
I didn't actually get that far - I am planning on using sprockets (although I might have a look at propshaft now). I stumbled across this while upgrading a rails 6 app. The process was something like:
Rails 7 dropped the dependency on Sprockets as well. So I accidentally removed the transient dependency on Sprockets when I upgraded rails and removed sass-rails. I wasn't actually trying to live without sprockets / propshaft. |
I'm seeing a problem running
rake --tasks
in a rails 7 project which has cssbundling-rails as a dependency but not sprockets.with --trace
Note: I'm not trying to run
assets:precompile
- the error is thrown byrake --tasks
.The trace calls out
build.rake:10
which looks like it assumes theassets:precompile
task will exist.Adding
gem "sprockets-rails"
to my Gemfile fixes the issue, but a749ca2 suggests that "Sprockets is not a dependency", so I think this is a bug.I can have a go at a PR...
The text was updated successfully, but these errors were encountered: