Rails 8 - Propshaft issue when not using Bootstrap
ACPK opened this issue · 2 comments
ACPK commented
Gemfile:
gem "blazer", github: "ankane/blazer"
Error:
# gems/blazer-16b1b6233af8/app/views/layouts/blazer/application.html.erb where line #9 raised:
Asset `blazer/bootstrap-propshaft.css` was not declared to be precompiled in production.
Declare links to your assets in `app/assets/config/manifest.js`.
//= link blazer/bootstrap-propshaft.css
and restart your server
def raise_unless_precompiled_asset(path)
raise Helper::AssetNotPrecompiledError.new(path) if @check_precompiled_asset && !precompiled?(path)
end
ankane commented
Hi @ACPK, it looks like you have both Sprockets and Propshaft installed. Removing one of them should fix the error, but will try to see if Blazer can better handle the case where they're both installed.
ankane commented
Fixed in the commit above. Thanks for reporting!