Next.js Discord

Discord Forum

Help when deploy in vercel

Unanswered
Elegant Trogon posted this in #help-forum
Open in Discord
Avatar
Elegant TrogonOP
Help, im trying to learn next with the tutorial in page, but in chapter 6, when i'm trying to deploy y have this problem. I dont know what is the problem here, because i have this dependencies
Image

16 Replies

Avatar
u did this?
Image
show me your package.json
Avatar
Elegant TrogonOP
{
"private": true,
"scripts": {
"prebuild": "pnpm install --save-dev @types/react @types/node",
"build": "next build",
"dev": "next dev",
"start": "next start"
},
"dependencies": {
"@heroicons/react": "^2.1.5",
"@tailwindcss/forms": "^0.5.7",
"@vercel/postgres": "^0.8.0",
"autoprefixer": "10.4.19",
"bcrypt": "^5.1.1",
"clsx": "^2.1.1",
"next": "^14.2.11",
"next-auth": "5.0.0-beta.19",
"postcss": "8.4.38",
"react": "18.3.1",
"react-dom": "18.3.1",
"tailwindcss": "3.4.4",
"typescript": "5.5.2",
"use-debounce": "^10.0.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/bcrypt": "^5.0.2",
"@types/node": "20.14.8",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0"
},
"engines": {
"node": ">=20.12.0"
}
}
Avatar
why the prebuild
are you deploying with the nextjs config from vercel
Avatar
Elegant TrogonOP
not, but this change i added after the problem, when im try to resolve it
i deleted this change, and same it doesn't work
Avatar
show me your vercel project page
Image
there should be a nextjs logo
Avatar
Elegant TrogonOP
Sorry, I'm back. Yes I have it
Image
Image
I use pnpm
Avatar
u can override
Avatar
Elegant TrogonOP
what thing?
Avatar
Elegant TrogonOP
I got it, thanks for the help!