Got "Error: error building site: TOCSS-DART: failed to transform "scss/galleriesdeluxe/styles.scss" (text/x-scss): "<stream>:1:1": proto: cannot parse invalid wire-format data" error when building the site
Closed this issue · 2 comments
lamons commented
I am trying to build from freshly cloned example site on my Mac (macOS 13.3.1) and encounter this error:
Error: error building site: TOCSS-DART: failed to transform "scss/galleriesdeluxe/styles.scss" (text/x-scss): "<stream>:1:1": proto: cannot parse invalid wire-format data
Hugo version:
hugo v0.115.4+extended darwin/amd64 BuildDate=unknown
sass --version 1.32.11
iHarshad commented
You will have to update SASS to version 1.6x or greater. DART-SASS has some upstream packaging changes which are causing this problem.
Here is how I fixed it.
- Download Dart-Sass from the Github releases page.
- After extracting the files, you will get this.
dart-sass
├── sass
└── src
├── LICENSE
├── dart
└── sass.snapshot
- Move the contents of the folder to somewhere in your
$PATH
. I moved them to~/.bin
which I have added to my$PATH
~/.bin
├── sass
└── src
├── LICENSE
├── dart
└── sass.snapshot
- That's it. In a new terminal you should be able to run the
hugo
command and have everything running.