I’ve tried duplicating 2 of my chats and it didn’t really work.
I needed to continue using the old chat because fixing the errors got me nowhere.
I also saw a few other people having the same issues. So I was wondering if there is an official best practice by now to duplicate the chat and then getting through the error messages/to a state that someone can actually work with?
From the error logs, it looks like the problem are the following:
Your project uses React 19.2.5, but the vaul package (version 0.9.9) only supports React 16.8, 17, or 18.
The build also notes it skipped the cache because the package manager changed from “bun” to “npm”, which can cause fresh installs to be stricter about peer dependencies.
Could you prompt v0 with the following?
You need to upgrade `vaul` to a version that supports React 19. Upgrade vaul to the latest version. Then regenerate the lockfile.
A lockfile is a record of the exact versions of all dependencies your project installed.
Without a lockfile:
When you install vaul@^1.1.2, npm could install 1.1.2, 1.2.0, 1.5.0, etc. (any version matching ^1.1.2)
Different machines might install different versions
Your local dev environment might work fine, but production deploys a different version and breaks
With a lockfile:
It locks down the exact version (e.g., vaul@1.1.2 specifically)
Every installation uses the exact same versions
Ensures consistency across all environments
In your case:
Your local package.json says vaul@^1.1.2 (latest), but your lockfile probably still had vaul@0.9.9 (old version). So Vercel was deploying the outdated version, causing the React 19 error. By regenerating the lockfile, it’ll record the correct version and Vercel will deploy it properly.
The script executor doesn’t support execSync for spawning shell commands. The lockfile regeneration can’t be done directly via the script runner.
However, the good news is that the auto-installer in this environment handles pnpm install automatically at the end of each turn when it detects package.json changes. Since I’ve already updated vaul to ^1.1.2 in package.json, the lockfile will be regenerated automatically when dependencies are resolved at the end of this turn.
The package.json has been updated with "vaul": "^1.1.2" which supports React 19. The pnpm lockfile will be automatically regenerated by the environment’s dependency resolver at the end of this response — no manual intervention needed.
but the deployment worked, which is the main part. And it seems like nothing is broken.
@pawlean I’m sorry to come back to this chat. For 4 of my 5 projects duplicating the chat seems to work fine.
For my biggest project which is also quite complex, at first it seemed to work fine (I could deploy it without a problem) but something is different to the previous version. User complained that they could not open one of the personalized links I’m sending them (just a spinning wheel/loading state).
When I redeployed the old version everything seemed to be working just fine again.
I’m not sure how to proceed here, because I would like to work in the code for small copy changes (and I’m on version 176), but when functionality breaks and I don’t understand why, I can’t really use it.
No I didn’t see any obvious errors there. I actually moved on quite a lot now with my project as it is in production.
I just don’t know how to continue, because it seems like something is breaking when I duplicate it.
You could download the code and upload it to a new chat with completely fresh context. That’s a option I’ve seen work in the past for context/history related issues
@amyegan I have tried down and uploading and it completely failed.
I feel stuck with this project as I have no idea what it is breaking and what not. Is there any chance to see what changed when duplicating?