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

Unable to build and run site #106

Closed ayushjain01 closed 6 months ago

ayushjain01 commented 6 months ago

What is your Hugo Extended Version

v0.123.8-5fed9c591b694f314e5939548e11cc3dcb79a79c+extended windows/amd64

What is your Go Version

go1.22.1 windows/amd64

What is your Node.js Version

v20.11.1

Check for Existing Issues

Expected Behavior

I followed all the instructions and ran the following commands -

npm run project-setup
npm install
npm run dev

The site does not build and gives the below error -

Start building sites …
hugo v0.123.8-5fed9c591b694f314e5939548e11cc3dcb79a79c+extended windows/amd64 BuildDate=2024-03-07T13:14:42Z 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 406 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.

Steps to Reproduce

  1. Download the Repository
  2. Download and install Go and Hugo extended version
  3. Follow instructions to run and build the project

Code Reproduction URL

https://github.com/ayushjain01/hugoplate-clone

Additional Information

No response

jmooring commented 6 months ago

https://gohugo.io/functions/resources/postcss/

If you are a Windows user, and the path to your project contains a space, you must place the PostCSS configuration within the package.json file. See this example and issue #7333.

ayushjain01 commented 6 months ago

This worked, Thank you!