zeon-studio / hugoplate

Hugoplate is a free starter template built with Hugo and TailwindCSS that will save you hours of work.
https://zeon.studio/preview?project=hugoplate
MIT License
798 stars 218 forks source link

Error postCSS #132

Closed acorbesier closed 3 months ago

acorbesier commented 3 months ago

What is your Hugo Extended Version

hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended windows/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=gohugoio

What is your Go Version

go version go1.22.3 windows/amd64

What is your Node.js Version

v20.13.1

Check for Existing Issues

Expected Behavior

I expected the website to run but instead i get the following error.

Steps to Reproduce

I followed the steps from the guide.

Code Reproduction URL

No response

Additional Information

PS C:\Users\ArthurCorbesier\OneDrive - ksdiest.be\2023-2024#GIP\GIP-Website\hugoplate> npm run dev

hugoplate@1.15.1 dev hugo server

Watching for changes in C:\Users\ArthurCorbesier\OneDrive - ksdiest.be\2023-2024#GIP\GIP-Website\hugoplate{assets,content,data,hugo_stats.json,i18n,package.json,postcss.config.js,tailwind.config.js,themes} Watching for config changes in C:\Users\ArthurCorbesier\OneDrive - ksdiest.be\2023-2024#GIP\GIP-Website\hugoplate\hugo.toml, C:\Users\ArthurCorbesier\OneDrive - ksdiest.be\2023-2024#GIP\GIP-Website\hugoplate\config_default, C:\Users\ArthurCorbesier\OneDrive - ksdiest.be\2023-2024#GIP\GIP-Website\hugoplate\config\development, C:\Users\ArthurCorbesier\OneDrive - ksdiest.be\2023-2024#GIP\GIP-Website\hugoplate\go.mod Start building sites … hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended windows/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=gohugoio

ERROR POSTCSS: failed to transform "/css/style-lazy.css" (text/css): 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Built in 622 ms Error: error building site: POSTCSS: failed to transform "/css/style.css" (text/css): 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

tfsomrat commented 3 months ago

Hey @acorbesier, is this a space into this folder name OneDrive - ksdiest.be?

acorbesier commented 3 months ago

I don't understand what you mean, OneDrive - ksdiest.be is just a folder on my pc for my onedrive. I also tried installing on Linux Ubuntu but i got the same error that the file is missing.

tfsomrat commented 3 months ago

If your root folder name contains space, it won't work. And, you may have missed a step when installing. follow this video https://github.com/zeon-studio/hugoplate?tab=readme-ov-file#-still-confused-watch-a-quick-video

acorbesier commented 3 months ago

Thank you, now it's working perfectly. Weird that you can't have a space in the folder name.