For some days now my Netlify builds suddenly break when creating a stylesheet from some SCSS. The error is as evading as possible and I have no memory of changing anything in the process.
Hugo version: 0.79.0 via netlify.toml
The error that comes up (with no previous or following warning or additional notices) is:
7:46:05 PM: Error: Error building site: POSTCSS: failed to transform "style.css" (text/css): resource "scss/theme.scss_7be65e57abd2a821d9a0a498759275a5" not found in file cache
The partial creating the stylesheet:
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true "precision" 6 "includePaths" (slice "node_modules")) }}
{{ $style := resources.Get "theme.scss" | resources.ToCSS $options | resources.PostCSS (dict "config" "postcss.config.js") | resources.Minify | resources.Fingerprint "sha512" }}
{{ return $style }}
In my understanding the fact that PostCSS does not find theme.scss-cachekey points to resources.ToCSS $options
being the culprit. I would however expect some more verbosity before the error that says something like βcould not find file to importβ or something else wrong in the SCSS process.
Not happening. I am very lost Where should I apply the crowbar?
By the way, locally it works, no error, no notice.