gethinode / hinode

A clean documentation and blog theme for your Hugo site based on Bootstrap 5
https://gethinode.com
MIT License
146 stars 51 forks source link

Error when running with hugo version 0.123.0 #782

Closed deining closed 8 months ago

deining commented 8 months ago

Describe the bug

Cannot run example site with newly released hugo version 0.123.0

To reproduce

npm install
hugo mod vendor
hugo -s exampleSite
Start building sites … 
hugo v0.123.0-3c8a4713908e48e6523f058ca126710397aa4ed5+extended linux/amd64 BuildDate=2024-02-19T16:32:38Z VendorInfo=gohugoio

ERROR render of "page" failed: execute of template failed: template: partials/head/head.html:8:7: executing "head" at <partialCached "head/stylesheet-core.html" .>: error calling partialCached: "/home/andreas/hinode/layouts/partials/head/stylesheet-core.html:3:3": execute of template failed: template: partials/head/stylesheet-core.html:3:3: executing "partials/head/stylesheet-core.html" at <partial "head/stylesheet.html">: error calling partial: "/home/andreas/hinode/layouts/partials/head/stylesheet.html:60:12": execute of template failed: template: partials/head/stylesheet.html:60:12: executing "partials/head/stylesheet.html" at <partial "head/icons.html" (dict "css" $css)>: error calling partial: "/home/andreas/hinode/layouts/partials/head/icons.html:22:54": execute of template failed: template: partials/head/icons.html:22:54: executing "partials/head/icons.html" at <$css.Content>: error calling Content: TOCSS-DART: failed to transform "css/main.css" (text/x-scss): "/home/andreas/hinode/_vendor/github.com/gethinode/mod-bootstrap/assets/scss/modules/bootstrap/_mixins-dart.scss:9:8": Can't find stylesheet to import.
ERROR TOCSS-DART: failed to transform "css/main.css" (text/x-scss): "/home/andreas/hinode/_vendor/github.com/gethinode/mod-bootstrap/assets/scss/modules/bootstrap/_mixins-dart.scss:9:8": Can't find stylesheet to import.
ERROR render: failed to render pages: render of "page" failed: execute of template failed: template: partials/head/head.html:8:7: executing "head" at <partialCached "head/stylesheet-core.html" .>: error calling partialCached: "/home/andreas/hinode/layouts/partials/head/stylesheet-core.html:3:3": execute of template failed: template: partials/head/stylesheet-core.html:3:3: executing "partials/head/stylesheet-core.html" at <partial "head/stylesheet.html">: error calling partial: "/home/andreas/hinode/layouts/partials/head/stylesheet.html:60:12": execute of template failed: template: partials/head/stylesheet.html:60:12: executing "partials/head/stylesheet.html" at <partial "head/icons.html" (dict "css" $css)>: error calling partial: "/home/andreas/hinode/layouts/partials/head/icons.html:22:54": execute of template failed: template: partials/head/icons.html:22:54: executing "partials/head/icons.html" at <$css.Content>: error calling Content: TOCSS-DART: failed to transform "css/main.css" (text/x-scss): "/home/andreas/hinode/_vendor/github.com/gethinode/mod-bootstrap/assets/scss/modules/bootstrap/_mixins-dart.scss:9:8": Can't find stylesheet to import.
Total in 479 ms
Error: error building site: TOCSS-DART: failed to transform "css/main.css" (text/x-scss): "/home/andreas/hinode/_vendor/github.com/gethinode/mod-bootstrap/assets/scss/modules/bootstrap/_mixins-dart.scss:9:8": Can't find stylesheet to import.

Expected behavior

Site should build, as with hugo version 0.122.0

Environment (please complete the following information):

markdumay commented 8 months ago

Confirmed, it looks like an error with Dart Sass. Some more investigation is needed. As a workaround, the libsass transpiler still seems to work. Add the following setting to params.toml:

[main]
    [main.build]
        transpiler = "libsass"
markdumay commented 8 months ago

I submitted issue #12072 in the Hugo repo for triage.

deining commented 8 months ago

Issue resolved with hugo 0.123.1.