TOCSS failed to transform

Hi
I have deployed Hugo 0.89.4 ( Linux-64.deb) in kubernetes and working fine. But when try to redeploy with out any change also but got error like below.

Error: Error building site: TOCSS: failed to transform “scss/main.scss” (text/X-scss): SCSS processing failed: file “stdin”, line 1, col 1: File to import not found or unreadable:…//vendor/bootstrap/scss/functions.

Can you suggest how to resolve the issue?

I don’t know what “redeploy” means, but I imagine your site uses one or more themes or modules. Are you sure you’re pulling those in?

Yes, while build the Docker image pulling those modules/themes.

Have you verified that is actually happening?

Yes, Docker image created successfully and able to deploy the pod in kube also, but pod was not stable and got above error.

It’s hard to diagnose without details, according to the logs, the docker container is missing some dependencies.
I assumed that you’re running Hugo server inside the container, if so, you’ll need to install the dependencies at runtime.

You can override the image’s command to check if the dependencies exist.

docker run myimage ls /path/to/vendor/bootstrap/scss

Or execute one more command during the build stage to make sure the image is OK, such as hugo.

Logs are like:

failed to render pages: render of “page” failed: execute of template failed: template: _default/search.html:16:7: executing “_default/search.html” at <partialCached “scripts.html” .>: error calling partialCached: “/use/share/blog/site/themes/docs/layouts/partials/scripts.html:84:30”: execute of template failed: template: partials/scripts.html:84:30: executing “partials/scripts.html” at <resources.Contact >: error calling Contact: slice interface { } not supported in contact.

`

resources.Contact is not a thing. Maybe you mean resources.Concat to concatenate (join) one or more resources?

We have resolve the issue using specific branch instead of latest. (“git clone - -branch v0.3.0 https://github.com/Google/dicey.git” instated of “ git clone https://github.com/Google/dicey.git“)