panr / hugo-theme-hello-friend

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/panr/hugo-theme-hello-friend/
MIT License
1.06k stars 1.24k forks source link

`Error building site: TOCSS: failed to transform "css/style.scss" (text/x-scss)` #307

Open mathieu-benoit opened 1 year ago

mathieu-benoit commented 1 year ago

I just integrated the last version of this theme with my Hugo website in version 0.105.0, but I'm getting this error when running hugo -v -s /site -d /site/public:

Step 7/13 : RUN hugo -v -s /site -d /site/public
 ---> Running in baaf5d503b32
Start building sites … 
hugo v0.105.0-0e3b42b4a9bdeb4d866210819fc6ddcf51582ffa linux/amd64 BuildDate=2022-10-28T12:29:05Z VendorInfo=gohugoio
INFO 2022/10/29 14:49:21 syncing static files to /
Error: Error building site: TOCSS: failed to transform "css/style.scss" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information

Is there anything to do on my end to integrate this new version of this theme?

panr commented 1 year ago

Hey, as the error says — you need to install the extended version of Hugo.

panr commented 1 year ago

I think I need to add this info to the README

mathieu-benoit commented 1 year ago

That would be great to document this indeed, thanks!

panr commented 1 year ago

Yeah, already did it 👌 BTW. can you confirm that the extended version works for you?

mathieu-benoit commented 1 year ago

Thanks and will do, I'm in the middle of debugging this in my Dockerfile. I'm able to download the associated extended binary, but now hugo bin is not findable... anyway, debugging this and will report back here.

mathieu-benoit commented 1 year ago

So apparently there are some other dependencies to install with alpine, which is my case: https://discourse.gohugo.io/t/solved-bin-sh-hugo-not-found-in-docker-container/12983. I will need to figure this out later, JFYI.