v0 preview sandbox module resolution error with @swc/helpers in Next.js 15

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

  1. 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.js 15.3.8
    • React 19
    • @swc/helpers
  4. Our production environment does not exhibit this behavior.


What We Need Clarified

  • Is the v0 Preview environment enforcing pnpm internally?
  • 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 v0 projects
  • Whether we should standardize on pnpm or npm for full compatibility
  • Or if this is a known sandbox caching bug

Thank you.

1 Like

Same here @bilalalam58-7827

Seemed like there may have been a slight incident yesterday that may have caused some of these issues. But all should be fine by now. The issues were resolved around 8pm (CET).
Can you let us know if you are still experiencing any of these issues.

Hi Sean, Thanks again for the clarification regarding yesterday’s incident.

While everything appears stable now, during the period of instability I spent approximately 45+ credits troubleshooting what appeared to be a project-level issue. At the time, it wasn’t clear that the problem was infrastructure-related, so I attempted multiple rebuilds and sandbox restarts trying to resolve it.

Since this was linked to the v0 incident, I wanted to ask if it would be possible to review my usage during that timeframe and consider a goodwill credit adjustment.I fully understand that incidents can happen I just wanted to check whether there’s any flexibility in this case.Appreciate your support.

1 Like

Hi @bilalalam58-7827
I unfortunately am unable to help out with reimbursement or assessing those scenarios but I will tag some from the team who can possible help you further and speak more with you about that. But happy to hear all is back to normal for you now.

@anshumanb @pawlean just tagging you here if you want to speak to them about their credit use.

1 Like

Thanks Sean, really appreciate you tagging the team. Glad to hear everything is stable now. I’ll connect with them regarding the credit usage.

2 Likes

I’ll DM you :slight_smile:

Hey! To help debug your v0 project, could you share your v0 chat link?
It looks like https://v0.app/chat/... — you can copy it from your browser’s address bar while in the chat.

You’ll also need to unlist the chat so our team can view it — here’s how: Sharing | v0 Docs

This helps the team reproduce what you’re seeing much faster. Thanks!