Closed filcuk closed 1 year ago
I'm getting a similar problem but in my case it's failing with "tailwindcss":
Start building sites …
hugo v0.107.0-2221b5b30a285d01220a26a82305906ad3291880+extended linux/amd64 BuildDate=2022-11-24T13:59:45Z VendorInfo=hugoguru
Error: Error building site: POSTCSS: failed to transform "css/directory/main.css" (text/css): Error: Cannot find module 'tailwindcss'
I can build my project fine using my local version of hugo (version 0.105.0) on my dev workstation, and it builds fine via Cloudflare Pages, but we are looking at changing our CI process and this is where it fails for some reason.
If I build my own image composed of the following the build succeeds the same as on my dev workstation:
My issue went away when I used a different theme.
The theme causing an error was 'showfolio', I haven't had the same issue with other ones.
I'm trying to spin up Hugo with the extended image but it errors out on PostCSS:
It seems like it's missing the module, could that be anything on my side?