Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot transpile CSS files when upgrading to Hugo v0.123.x #809

Closed
markdumay opened this issue Feb 28, 2024 · 0 comments · Fixed by #818
Closed

[BUG] Cannot transpile CSS files when upgrading to Hugo v0.123.x #809

markdumay opened this issue Feb 28, 2024 · 0 comments · Fixed by #818
Labels
bug Something isn't working

Comments

@markdumay
Copy link
Collaborator

markdumay commented Feb 28, 2024

Describe the bug

When upgrading to Hugo v0.123.x, certain Hinode modules fail to transform their SCSS input files. These errors cascade to downstream modules too.

To reproduce

Upgrade the Hugo binary to the latest version (currently v0.123.6) and build the site. Visit gethinode/mod-bootstrap#52 for an example.

Log file

As an example, the mod-bootstrap module fails with the following error:

Error: error building site: TOCSS-DART: failed to transform "style.app.scss" (text/x-scss): "/home/runner/work/mod-bootstrap/mod-bootstrap/assets/scss/modules/bootstrap/_mixins-dart.scss:9:8": Can't find stylesheet to import.

Host environment

Please complete the following information where applicable.

  • Hinode version: [v0.23.0-beta6]
  • Host OS: N/A
  • Node version: N/A
  • Browser: N/A

Hugo environment

hugo v0.123.4-21a41003c4633b142ac565c52da22924dc30637a+extended darwin/arm64 BuildDate=2024-02-26T16:33:05Z VendorInfo=brew
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.22.0"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.3.2"
github.com/sass/dart-sass/protocol="2.5.0"
github.com/sass/dart-sass/compiler="1.71.1"
github.com/sass/dart-sass/implementation="1.71.1"

Additional context

The issue seems to be caused by an upstream bug in Hugo, a fix is available in gohugoio/hugo#12141. A similar issue has been raised here: gohugoio/hugo#12178.

@markdumay markdumay added the bug Something isn't working label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant