Error during failsafe response: The asset 'exception_handler.css' was not found in the load path.
jon-mcclung-fortyau opened this issue · 0 comments
jon-mcclung-fortyau commented
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!