Closed
Description
I'm getting the error:
ActionView::Template::Error (Asset 'application.css' was not declared to be precompiled in production.
Declare links to your assets in 'app/assets/config/manifest.js'.
//= link application.css
and restart your server):
But I have my application.scss
(NOT .css) in app/assets/stylesheets
and my app/assets/config/manifest.js
says:
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .scss
I'm using:
- sprockets 4.0.0
- sprockets-rails 3.2.1
- rails 6.0.2.1
Temporary solution: Downgrade the gem as follows:
gem 'sprockets-rails', '2.3.3'
Metadata
Metadata
Assignees
Labels
No labels