Hi,
I have a problem with deploying to Vercel. I wrote the code using v0 and pressed the deploy button and got the message Failed to deploy block to Vercel. This only happens with this one project and I can deploy normally with other projects. I will also add that no error is shown in the console.
This is a link to my chat (https://v0.dev/chat/ydM3AbxfBlZ) I hope that support will help, because I have already seen several topics on this topic and there is no solution anywhere.
Vercel Staff
Thanks for sharing the chat, ! I tried deploying from a fork and also got an error.
The notification popup had a link that let me see the build logs, and there's a dependency error.
Here's the build log:
yes, I know, I haven't had time to update it yet, but now it turns out that I don't know how to run it, can you help me?
Vercel Staff
Of course! You'll need to update the packages to resolve the dependency conflict. Here's the update package.json that worked for me
{
"name":"my-v0-project",
"version":"0.1.0",
"private":true,
"scripts":{
"dev":"next dev",
"build":"next build",
"start":"next start",
"lint":"next lint"
},
"dependencies":{
"@hookform/resolvers":"^3.9.1",
"@radix-ui/react-accordion":"^1.2.2",
"@radix-ui/react-alert-dialog":"^1.1.4",
"@radix-ui/react-aspect-ratio":"^1.1.1",
"@radix-ui/react-avatar":"^1.1.2",
"@radix-ui/react-checkbox":"^1.1.3",
"@radix-ui/react-collapsible":"^1.1.2",
"@radix-ui/react-context-menu":"^2.2.4",
"@radix-ui/react-dialog":"^1.1.4",
"@radix-ui/react-dropdown-menu":"^2.1.4",
"@radix-ui/react-hover-card":"^1.1.4",
"@radix-ui/react-label":"^2.1.1",
"@radix-ui/react-menubar":"^1.1.4",
"@radix-ui/react-navigation-menu":"^1.2.3",
"@radix-ui/react-popover":"^1.1.4",
"@radix-ui/react-progress":"^1.1.1",
"@radix-ui/react-radio-group":"^1.2.2",
"@radix-ui/react-scroll-area":"^1.2.2",
"@radix-ui/react-select":"^2.1.4",
"@radix-ui/react-separator":"^1.1.1",
"@radix-ui/react-slider":"^1.2.2",
"@radix-ui/react-slot":"^1.1.1",
"@radix-ui/react-switch":"^1.1.2",
"@radix-ui/react-tabs":"^1.1.2",
"@radix-ui/react-toast":"^1.2.4",
"@radix-ui/react-toggle":"^1.1.1",
"@radix-ui/react-toggle-group":"^1.1.1",
"@radix-ui/react-tooltip":"^1.1.6",
"autoprefixer":"^10.4.20",
"class-variance-authority":"^0.7.1",
"clsx":"^2.1.1",
"cmdk":"1.0.4",
"date-fns":"4.1.0",
"embla-carousel-react":"8.5.1",
"input-otp":"1.4.1",
"lucide-react":"^0.454.0",
"next":"14.2.16",
"next-themes":"^0.4.4",
"react":"^18",
"react-day-picker":"^9.5.0",
"react-dom":"^18",
"react-hook-form":"^7.54.1",
"react-resizable-panels":"^2.1.7",
"recharts":"2.15.0",
"sonner":"^1.7.1",
"tailwind-merge":"^2.5.5",
"tailwindcss-animate":"^1.0.7",
"vaul":"^0.9.6",
"zod":"^3.24.1",
"framer-motion":"latest",
"react-intersection-observer":"latest"
},
"devDependencies":{
"@types/node":"^22",
"@types/react":"^18",
"@types/react-dom":"^18",
"postcss":"^8",
"tailwindcss":"^3.4.17",
"typescript":"^5"
}
}
This topic is closed. It no longer accepts new replies.