React Cloudflare Pages Build Error

Up front I am SUPER new to dealing with the build function. I have done it manually before, but thought it would be fun to set up a pipeline here with cloudflare so when I push to main it will rebuild the site.
I am getting this error on my build function. I already know it is going to be something really stupid I did. But could you please tell me what I did wrong? Or help me?
Vite was used to create the app.
React and jsx

I am running
npm run build
and putting in /dist
When I do this build action on my machine it works just fine.

Below is the error I am getting.

|2024-01-18T02:06:44.981794Z|➤ YN0000: Failed with errors in 4s 584ms|
|2024-01-18T02:06:45.031046Z|Error: Exit with error code: 1|
|2024-01-18T02:06:45.031419Z| at ChildProcess. (/snapshot/dist/run-build.js)|
|2024-01-18T02:06:45.0317Z| at Object.onceWrapper (node:events:652:26)|
|2024-01-18T02:06:45.03188Z| at ChildProcess.emit (node:events:537:28)|
|2024-01-18T02:06:45.032028Z| at ChildProcess._handle.onexit (node:internal/child_process:291:12)|
|2024-01-18T02:06:45.03866Z|Failed: build command exited with code: 1|
|2024-01-18T02:06:46.001466Z|Failed: error occurred while running build command|

SO… I fixed it… I am dumb… I had Yarn in there for some reason… and it was breaking because… WELL I AM STUIPD.

But thank you for stoping in

1 Like