vercellabsworkflowbulkhead was imported from a ZIP file. Continue chatting to ask questions about or make changes to it.
The code returns the following error:
Error: Turbopack build failed with 1 errors:
./app
Error: Next.js inferred your workspace root, but it may not be correct.
We couldn't find the Next.js package (next/package.json) from the project directory: /vercel/share/v0-next-shadcn/app
To fix this, set turbopack.root in your Next.js config, or ensure the Next.js package is resolvable from this directory.
Note: For security and performance reasons, files outside of the project directory will not be compiled.
See https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack#root-directory for more information.
at ignore-listed frames
Revise the code to address the error.
The issue is with the custom turbopackRoot() function which isn't working correctly in the v0 environment. I'll simplify the next.config.ts to use the standard configuration without the custom root detection logic.
I simplified the next.config.ts by removing the custom turbopackRoot() function and Turbopack root configuration. The v0 runtime handles module resolution automatically, so the custom logic was causing conflicts. The workflow integration via withWorkflow() is preserved to maintain the Workflow DevKit functionality.