rewrkz
March 20, 2024, 5:12pm
1
Hello Guys,
I go error when building:
11:51:28 PM: Configuration error
11:51:28 PM: ────────────────────────────────────────────────────────────────
11:51:28 PM:
11:51:28 PM: Error message
11:51:28 PM: Deploy did not succeed: Deploy directory “build/client” does not exist
11:51:28 PM:
11:51:28 PM: Resolved config
11:51:28 PM: build:
11:51:28 PM: command: pnpm --filter vite-edge… build
11:51:28 PM: commandOrigin: config
11:51:28 PM: publish: /opt/build/repo/build/client
11:51:28 PM: publishOrigin: config
11:51:28 PM: functionsDirectory: /opt/build/repo/netlify/functions
11:51:28 PM: headers:
11:51:29 PM: Failed during stage “building site”: Build script returned non-zero exit code: 2
Any solutions?
Thanks
dig
March 20, 2024, 5:21pm
2
rewrkz:
Any solutions?
Based on the error reason
The solution is to configure the output directory correctly.
rewrkz
March 20, 2024, 5:49pm
3
any clue the correct dir?
dig
March 20, 2024, 5:55pm
4
I cannot see the project source so I can offer no clues.
rewrkz
March 20, 2024, 5:57pm
5
Im using vite and remix
source structure come like this
dig
March 20, 2024, 6:05pm
6
A cut-down screenshot of the directory structure of the project provides no useful information.
If you are unable to provide the link to the public git repository (that’s your choice and fine if you cannot) I suggest you consult the Vite documentation and Netlify Build Configuration documentation to determine the correct settings for your project.
Also check out the following
We want to help you build and deploy your site as easily as possible. Our team has written numerous support guides on frequently encountered problems during builds, build/deploy behaviour, drag and drop deploys, and more. In an effort to streamline your searching, we have compiled a list of our Support Guides related to builds and deploys. Each guide contains a ton of useful debugging tips that can likely help you solve your problem.
Troubleshooting and high-level debugging
Frequently encounte…