Hugo failed pipeline "en/styles/main-rendered.scss" (text/x-scss)

Gitlab fails update my Hugo push

I use Gitlab page as my Hugo server (with meme theme). It worked fine until the past few days.
My new post looks fine on my local machine (hugo server -D). And I can push it successfully to Gitlab.
But the Gitlab hugo failed building/updating. The error message I got

“Executing “step_script” stage of the job script
Using docker image sha256:79a59574566d99d80e8b345004c2db45f701f67ec81a2755fe75c7c9f972fd28 for registry.gitlab.com/pages/hugo:latest with digest registry.gitlab.com/pages/hugo@sha256:a579d7d8d48ac51666462d63e87a0f55272458240ece2eacf5e412438e98d03b
$ hugo
Start building sites …
hugo v0.109.0-47b12b83e636224e5e601813ff3e6790c191e371 linux/amd64 BuildDate=2022-12-23T10:38:11Z VendorInfo=gohugoio
Error: Error building site: TOCSS: failed to transform “en/styles/main-rendered.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 Frequently Asked Questions |Hugo for more information
Total in 1137 ms
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 255”

My gitlab-ci.yml:
"
image: registry.gitlab.com/pages/hugo:latest

variables:
GIT_SUBMODULE_STRATEGY: recursive

pages:
script:

  • hugo
    artifacts:
    paths:
    • public
      only:
  • master

My local hugo: hugo v0.108.0+extended linux/amd64 on Linux 6.1.1-arch1-1 x86_64

Your kind help is deeply appreciated! :blush:

Problem solved. I change the Hugo version in my .gitlab-ci.yml from “hugo:latest” to “hugo:0.108.0”

image: registry.gitlab.com/pages/hugo:0.108.0

variables:
GIT_SUBMODULE_STRATEGY: recursive

pages:
script:

  • hugo
    artifacts:
    paths:
    • public
      only:
  • master