I’ve inherited a site to work on that uses the Book theme. When running hugo server, I get the following error:
Error: Error building site: TOCSS: failed to transform "book.scss" (text/x-scss): resource "scss/book.scss_50fc8c04e12a2f59027287995557ceff" not found in file cache
I’ve made sure I have the correct version of Hugo and Hugo extensions, not sure what else to try.
Are you sure you’re using Hugo extended?
You’re right, it seems I am not using extended. I have v 74.3 on Linux (which I am a newbie to), and I’ve tried running
go install --tags extended
as suggested here
but I’m getting the error
can't load package: package .: no Go files in /usr/bin
even though I see /usr/bin/go when I do ls.
So I’m stumped as to how to get the extended version.
You can download it from repository releases page:
actually, I used snap and that solved the problem. Thanks!
snap remove hugo
snap install hugo --channel=extended a