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

[v0](/c/v0/59)

# V0 preview fails with runtime errors, Vercel production builds works

54 views · 0 likes · 3 posts


Aleks (@aarsovski) · 2025-06-16

I'm having trouble to run my project in the preview, it fails with errors which don't exist in the official Vercel build/deployment or locally. I've tried to auto fix / debug with v0, but it does unnecessary changes and fails with the some problem... Of course, I can keep trying to do auto fix / debug with v0, but I don't think there is a problem with the code... given it works nicely on local and production deployments.

Anyone else seeing this?


Jacob Paris (@jacobparis) · 2025-06-16

Can you explain more about the specific errors you're getting? There are some things that won't work in the preview due to it being a simulated browser/server environment


Aleks (@aarsovski) · 2025-06-17

Thanks Jacob,

I've seen few types of failures, some about the missing dependency (or maybe just bubbling up like this but being a runtime error), the latest one I see is this:

## withDragAndDrop is not a function at (/components/calendar/calendar-view)

It works locally, it works on production build, it used to work on the preview as well... I've tried to fork the thread, it just still stays and I cannot get rid of it.