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

Error during failsafe response: The asset 'exception_handler.css' was not found in the load path. #110

Open
jon-mcclung-fortyau opened this issue Sep 6, 2023 · 0 comments

Comments

@jon-mcclung-fortyau
Copy link

I added this gem (version 0.8.0.0) to my Rails (version 7.0.4.3) project and added a basic configuration to the project

config.exception_handler = {
    dev: true
}

Then to test I added raise "Test exception" to my root action.

I get the following error:

Error during failsafe response: The asset 'exception_handler.css' was not found in the load path.

I tried adding it in config/initializers/assets.rb like so:

Rails.application.config.assets.precompile += %w[
  exception_handler.css
  ...
]

But as you might expect it did not work. I think it's because the css file is within the gem, not where I keep the rest of my js and css files. I asked ChatGPT and it said the css files should be added to the assets pipeline automatically by the gem. Does this mean there is a bug on your end since it's not being added properly or did I miss a step somewhere?

Thanks in advance for your help!

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

1 participant