Hugothemes: since v0.67.1: SASS/SCSS resources not found in the file cache

Created on 17 Mar 2020  Â·  12Comments  Â·  Source: gohugoio/hugoThemes

I just found the demo's CSS messed up.

Then I checked the deploy log and found this:

5:35:29 AM:  ==== PROCESSING  hugo-theme-meme  ======
5:35:30 AM: Building site for theme hugo-theme-meme using default content to ../themeSite/static/theme/hugo-theme-meme/
5:35:30 AM: Error: Error building site: TOCSS: failed to transform "styles/main-rendered.scss" (text/x-scss): resource "scss/scss/main.scss_0437a1669ac8a9868f1dd1fe846b91a6" not found in file cache
5:35:30 AM: FAILED to create exampleSite for hugo-theme-meme

Note that hugo-theme-meme doesn't seem to be alone:

2020-03-17-15-26-07

Looks like it's a problem with the latest version of Hugo (v0.67.1), as the previous deployment logs didn't have this error. But I'm not sure, because I didn't encounter this problem when testing my site locally.

bug

Most helpful comment

I have reverted what I assume is the commit that caused this and triggered a theme build using Hugo master:

https://app.netlify.com/sites/hugothemes/deploys/5e765190fab06290ccdfbb03

Provided that works out OK, I will do a patch release tomorrow.

Sorry for the noise.

All 12 comments

Thanks for the heads up @reuixiy

I am very busy these days and after updating the Hugo version but I did not check the log.

Turns out that several themes broke due to Hugo 0.67.1

See: https://app.netlify.com/sites/hugothemes/deploys/5e6ec4da9b10ef00087b77a3

2:17:53 AM: Finished with 33 errors ...

Most errors are about SASS/SCSS resources not being found in the file cache.

I am reverting the change in the Hugo Themes repo and changing the title of this issue

cc/ @bep

This issue is also present in v0.68.0

Repo deployment will be using v0.67.0 for the time being.

cc: @digitalcraftsman

Hmm... I cannot reproduce this locally, but I will look into it...

I have reverted what I assume is the commit that caused this and triggered a theme build using Hugo master:

https://app.netlify.com/sites/hugothemes/deploys/5e765190fab06290ccdfbb03

Provided that works out OK, I will do a patch release tomorrow.

Sorry for the noise.

The latest deploy worked out fine.

7:47:02 PM: Finished with 2 errors ...

Thanks for looking into this.

@reuixiy

Your theme's demo is broken in v0.68.1 because you generated the theme resources with the recent Hugo versions that featured the commit that was reverted.

You need to regenerate and re-commit your theme's resources with v0.68.1

The demo will be fixed in the next scheduled update of the repository.

@onedrawingperday

Done.

Thanks a lot!

HI, experiencing the same error with 0.69.0 when trying to install Go and Hugo on ZEIT now via this script:
https://github.com/jamstatic/jamstatic-fr/blob/zeit/now-build.sh

Installing Hugo 0.69.0...
22:28:31.342  
Hugo Static Site Generator v0.69.0-4205844B linux/amd64 BuildDate: 2020-04-10T09:12:34Z
22:28:31.729  
Building site...
22:28:32.324  
go: finding github.com/jygastaud/hugo-microtypo/microtypo v0.0.0-20191211154642-06fe4924e9e4
22:28:32.343  
hugo: collected modules in 590 ms
22:28:33.401  
Building sites … Total in 1649 ms
22:28:33.401  
Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): resource "scss/scss/main.scss_97926dd476e00bee4d471a0eb9d338c8" not found in file cache
22:28:33.406  
Error: Command "./now-build.sh" exited with 255

build is working locally and on Netlify, I'm in unknown territory here, sorry it it's off-topic :)

@DirtyF

You need to call a Hugo Extended binary for your build to succeed.

It seems that the ZEIT platform uses the exact version from https://github.com/jamstatic/jamstatic-fr/blob/zeit/now.json whereas Netlify's default Xenial Build Image enforces the Hugo Extended binaries, hence the successful deployment on the latter.

If Hugo Basic is the only version you can use on ZEIT then you will have to generate the theme's resources locally with the Extended version and commit them in your project's repo.

Hello @onedrawingperday, thanks a lot for the anwser.

I switched to the extended version of Hugo, with the same results:

23:52:25.979  Installing Hugo 0.69.0...
23:52:27.869  Hugo Static Site Generator v0.69.0-4205844B/extended linux/amd64 BuildDate: 2020-04-10T09:16:58Z
23:52:27.977  Running Hugo...
23:52:28.602  hugo: collected modules in 602 ms
23:52:29.540  Building sites … Total in 1541 ms
23:52:29.541  Error: Error building site: POSTCSS: failed to transform "assets/css/main.css" (text/css): resource "scss/scss/main.scss_97926dd476e00bee4d471a0eb9d338c8" not found in file cache

@DirtyF

I’m not familiar with ZEIT maybe you need to ask them or ask in the Hugo forum at: https://discourse.gohugo.io

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kishaningithub picture kishaningithub  Â·  5Comments

onedrawingperday picture onedrawingperday  Â·  5Comments

heyarviind picture heyarviind  Â·  7Comments

kskarthik picture kskarthik  Â·  7Comments

DirtyF picture DirtyF  Â·  7Comments