You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README should/could also point out specifically that a reason for receiving
`LoadError: cannot load such file -- sassc`
… is that Sprockets could not find the css file being requested. That could be because:
Rails.application.config.dartsass.builds isn't configured to produce a file with the requested name.
The file wasn't built. (Because dartsass:build wasn't called, or locally dartsass:watch isn't running for example.)
As an example:
<%= stylesheet_link_tag "site" %>
# With the configuration:
Rails.application.config.dartsass.builds = {
"application.scss" => "application.css",
}
Sprockets will not find the file 'application.css' in any of the locations specified in mainfest.js (it's not in the app/assets/builds folder) and so Sprockets will apparently try to use the sassc part of the pipeline to find and build it the old way. Since sassc isn't installed, that results in a load error.
The text was updated successfully, but these errors were encountered:
The README should/could also point out specifically that a reason for receiving
… is that Sprockets could not find the css file being requested. That could be because:
As an example:
Sprockets will not find the file 'application.css' in any of the locations specified in mainfest.js (it's not in the app/assets/builds folder) and so Sprockets will apparently try to use the sassc part of the pipeline to find and build it the old way. Since sassc isn't installed, that results in a load error.
The text was updated successfully, but these errors were encountered: