TOCSS: ressource not found in file cache

I’m having trouble with a website I just started. I created the website by copying an existing website that works fine.

Here is the error I get when I want to build:

rez-env hugo -- hugo
Building sites … Total in 36 ms
Error: Error building site: TOCSS: failed to transform "css/main.scss" (text/x-scss): resource "scss/css"/main.scss_f300667da4f5b5f84e1a9e0702b2fdde" not found in file cache

My hugo version:

rez-env hugo -- hugo version
Hugo Static Site Generator v0.69.0-4205844B windows/amd64 BuildDate: 2020-04-10T09:11:37Z

The code in themes/v1/layout/baseof.html:

    {{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true "includePaths" (slice "node_modules/myscss")) }}
    {{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS $options | resources.Fingerprint -}}
    <link rel="stylesheet" href="{{ $style.Permalink }}" /

I tried to run hugo with --ignoreCache but that doesn’t work either :confused:

Use the Extended version to do css transformation.

i just tested your repo with extended version. it works.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.