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

Rails 8 - Propshaft issue when not using Bootstrap #483

Closed
ACPK opened this issue Oct 9, 2024 · 2 comments
Closed

Rails 8 - Propshaft issue when not using Bootstrap #483

ACPK opened this issue Oct 9, 2024 · 2 comments

Comments

@ACPK
Copy link

ACPK commented Oct 9, 2024

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
Copy link
Owner

ankane commented Oct 9, 2024

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 ankane closed this as completed in 0f66c6b Oct 9, 2024
@ankane
Copy link
Owner

ankane commented Oct 9, 2024

Fixed in the commit above. Thanks for reporting!

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