Hi Team,
We’re experiencing a recurring issue specifically inside the v0 Preview Sandbox environment, while our production deployments on Vercel are working perfectly fine.
Issue Summary
The Preview environment intermittently throws this error:
Error: Cannot find module '@swc/helpers/package.json'Require stack:- /vercel/share/v0-next-shadcn/node_modules/.pnpm/next@15.3.8...The error appears during v0 Preview builds, especially after making code changes.
However:
- Production deployments build successfully
- The project runs correctly after restarting the sandbox
- The error reappears after modifying code and triggering a new preview rebuild
Observations
-
The error originates from:
/vercel/share/v0-next-shadcn/
which appears to be an internal shared runtime layer in the v0 sandbox.
2. Restarting the sandbox temporarily resolves the issue.
3. The problem seems related to dependency resolution in the sandbox environment (possibly pnpm-based), especially involving:
Next.js15.3.8React19@swc/helpers
- Our production environment does not exhibit this behavior.
What We Need Clarified
- Is the
v0Preview environment enforcingpnpminternally? - Is it using a shared dependency layer that may conflict with project-level lockfiles?
- Is there a recommended way to fully align package manager configuration to avoid sandbox resolution issues?
- Can this be fixed from your side if it’s related to shared sandbox caching?
This issue is affecting preview reliability but not production stability.
We would appreciate guidance on:
- The correct dependency strategy for
v0projects - Whether we should standardize on
pnpmornpmfor full compatibility - Or if this is a known sandbox caching bug
Thank you.
