It looks like there’s no application.css
in your manifest.json
which means you might not be importing any css from within your Webpack javascript files.
If that’s all true, then you can fix the error in production by one of the following:
- Quick (temporary) fix: Add
extract_css: false
to yourproduction
block inconfig/webpacker.yml
(which would mimic your local environments) - If you don’t want to compile css with Webpacker: Remove
<%= stylesheet_pack_tag 'application' %>
from your application layout - If you want to compile some css with Webpacker: Import at least one css file from your Webpack javascript