Closed thomasmost closed 11 months ago
how to use fix this ? i have same issue
@thomasmost how did you resolve this error?
@thomasmost I am having same issue, how did you solve it
Not sure if it helps. Please try this https://turbo.build/repo/docs/reference/configuration#outputs
in vercel project settings set root directory to apps/web
or whichever app you trying to deploy.
ps if you havent already; select nextjs as framework preset. build command is turbo run build
.
What version of Turborepo are you using?
1.10.16
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
I am getting a "Missing public directory" error on cache hits for my newly added CRA app
The error is:
Error: No Output Directory named "build" found after the Build completed. You can configure the Output Directory in your Project Settings.
It seems like Turbo doesn't know to cache the build directory — is there a way to specify this?
Full logs:
Expected Behavior
On a cache hit, the output directory (
build
) from the cache should be usedTo Reproduce
Deploy a turbo repo with a Create React App member?
Reproduction Repo
No response