Extended version but no SCSS/SASS working in templates (HUGO on debian 13)

I have tried to use a template that had scss elements, but I get this error:

TOCSS: failed to transform "noscript.scss" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information

I’ve gone to the link and tried to install homebrew so I could get dartsass to work, in the hope that it would fix this.

Now I have dartsass - the version is here:

sass --embedded --version
{
  "protocolVersion": "3.2.0",
  "compilerVersion": "1.94.0",
  "implementationVersion": "1.94.0",
  "implementationName": "dart-sass",
  "id": 0
}

and my hugo env says:

hugo env
hugo v0.147.2-c7feb15d10b29a94d7fb57c31e8bcb2e92718fb7 linux/amd64 BuildDate=2025-05-06T11:18:55Z VendorInfo=gohugoio
GOOS=“linux”
GOARCH=“amd64”
GOVERSION=“go1.24.0”
github.com/sass/dart-sass/protocol=“3.2.0”
github.com/sass/dart-sass/compiler=“1.94.0”

github.com/sass/dart-sass/implementation=“1.94.0”

But i keep getting the error when trying to run “hugo serve” on any projects with scss-functions in their themes.

What am I doing wrong or missing here?

maybe that one: Warn deprecated css.Sass

Seems like it might be the case.
Thanks!

… I do have some trouble figuring out where to put the suggested transpiler-code, though.

Do I just add it in head.html in my partials for the theme, or is it supposed to go with something else? I haven’t seen any previous mention of transpiler when looking around the files for the theme (hugo-story, is the theme) so I have no value to replace.

have a look at the example in the docs:

if that doesnot help, would be good to share your setup…according to the docs both should work. so maybe something weird on your side

re-read the the discussion and if I understand, you have that problem with all themes.

in your first post : that is not the extended one

There should be a +extended after the SHA
hugo v0.161.1-ea8f66a7ce988664dcc84c052fc96757042e2e4a+extended

recheck your installation.

following GitHub - caressofsteel/hugo-story: A (modular, highly tweakable) responsive one-page Hugo template. · GitHub it worked smoothly with hugo 147.2 and the latest 161.1 with

  • either hugo extended installed_
  • or a sass binary in my path and setting the transpiler to dartsass

Oh - many thanks for clarifying that!

I thought it was, since I installed it with “apt install hugo” on my system, as described here: Linux

I went back after reading your response, and tried with brew instead. It worked! Many thanks :slight_smile: