Using the Dart Sass transpiler

If you use mise to manage dart-sass, Hugo will fail to start.

This is .mise.toml

[tools]
"npm:dart-sass" = "latest"

This is the output:

$ dart-sass --version
1.25.0 compiled with dart2js 2.7.0

$ which dart-sass
/home/hentioe/.local/share/mise/shims/dart-sass

$ hugo server -D
port 1313 already in use, attempting to use an available port
Watching for changes in /home/hentioe/code/hugo-blog/{archetypes,assets,content,data,i18n,layouts,package.json,static,themes}
Watching for config changes in /home/hentioe/code/hugo-blog/hugo.toml, /home/hentioe/code/hugo-blog/themes/my-theme/hugo.toml
Start building sites … 
hugo v0.127.0 linux/amd64 BuildDate=unknown

Built in 155 ms
Error: error building site: TOCSS-DART: failed to transform "/scss/main.scss" (text/x-scss): "<stream>:1:1": proto: cannot parse invalid wire-format data

mise is a version management tool similar to asdf that can manage NPM package versions without the need for package.json or npm i -g.

I know mise isn’t a very common tool, but it would be nice if it could be fixed.