V0 deployment issue

I can’t seem to be able to publish my V0 application. I get this error, and V0 has been locked in an error loop.

warn: incorrect peer dependency "draft-js@0.9.1"

warn: incorrect peer dependency "draft-js@0.9.1"

error: GET https://registry.npmjs.org/use%20client - 404

error: use client@latest failed to resolve

Error: Command "bun install" exited with 1

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

Can you share a chat link with us?

I can’t seem to be able to publish my V0 application. I get this error, and V0 has been locked in an error loop.

warn: incorrect peer dependency “draft-js@0.9.1”

warn: incorrect peer dependency “draft-js@0.9.1”

error: GET https://registry.npmjs.org/use%20client - 404

error: use client@latest failed to resolve

Error: Command “bun install” exited with 1

Hi, any update?

have you tried switching to npm or pnpm?

How do I do that?

I am using web UI and I want to publish. That is when I get the error message.

I would start with prompting v0 to try and fix this by switching to one of those. Or maybe it is better to do it in Vercel.
But also have it check to see what the Bun error issue is.
Ask it to try replacing bun with “npm install”.
im not positive this is the solve or will work, but I think its worth a try. You can always revert back.

still can’t publish. Getting same error

Usually, deployment failed during bun install because the package manager is attempting to fetch a package named "use client".

The directive "use client" (intended for Next.js/React Client Components) has been mistakenly added to the package.json dependencies. Additionally, there is a peer dependency mismatch for draft-js@0.9.1 that should be audited, though it is likely not the cause of the build failure.

Could you ask v0 to remove "use client": "latest" (or similar) from package.json and verify if draft-js needs an update to be compatible with the current React version.

tried all that but still no joy