[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[v0](/c/v0/59)

# Turbopack build error: Inferred workspace root is incorrect

68 views · 1 like · 2 posts


Bongiovannidev 2076 (@bongiovannidev-2076) · 2026-03-17

The preview failed with a Turbopack error. Next.js was unable to locate the `next/package.json` within the inferred project directory (`/vercel/share/v0-next-shadcn/app`). This typically happens when the root directory for Turbopack is misconfigured or the package structure is not resolvable from the current path.

![image|481x500](upload://v72ZgnG4lk0apvxkImMzZpIb7By.png)


Amy Egan (@amyegan) · 2026-03-17 · ♥ 1

The error indicates that Next.js cannot find its packages in the expected location (`/vercel/share/v0-next-shadcn/app`), which is part of v0’s internal structure rather than your project.

As a workarounds you could try duplicating your chat to a new project to get a fresh sandbox environment or export your code and deploy it directly to Vercel instead of using v0 preview

The v0 team is aware of some Turbopack-related preview issues and is working to solve them. For now, deploying outside of v0’s preview environment is the most reliable solution.