trouble with Vercel deploy (no errors)

Summary Cant figure out why this is happening. The build is succeeding on local. then deployment doesnt work I dont see any errors. It also fails when deploying by github push hook would code outside /src/ cause build failure without error? i have a folder which houses some batch processes and one of the APIs is importing functions from that folder - could that cause this? package.json
{
"private": true,
"scripts": {
"build": "NODE_ENV=production next build",
"deploy": "vercel deploy",
},
"dependencies": {
"@aws-sdk/client-eventbridge": "^3.406.0",
"@headlessui/react": "^1.7.10",
"@heroicons/react": "^2.0.15",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^2.9.10",
"@next-auth/prisma-adapter": "^1.0.5",
"@prisma/client": "^4.11.0",
"@tanstack/react-query": "^4.16.0",
"@trpc/client": "^10.0.0",
"@trpc/next": "^10.0.0",
"@trpc/react-query": "^10.0.0",
"@trpc/server": "^10.0.0",
"chalk": "^5.2.0",
"chart.js": "^4.2.1",
"chartjs-adapter-date-fns": "^3.0.0",
"date-fns": "^2.29.3",
"next": "13.0.2",
"next-auth": "^4.19.2",
"next-connect": "^0.13.0",
"next-superjson-plugin": "^0.5.6",
"node-fetch": "^2.6.7",
"node-mailjet": "^5.1.1",
"nodemailer": "^6.8.0",
"quirrel": "^1.13.2",
"react": "18.2.0",
"react-chartjs-2": "^5.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.41.5",
"react-icons": "^4.7.1",
"styled-components": "^5.3.6",
"superjson": "1.9.1",
"uptime-check": "^4.2.0",
"uuid": "^9.0.0",
"zod": "3.21.1",
"zod-error": "^1.5.0",
"zod-prisma-types": "^2.5.1"
}
{
"private": true,
"scripts": {
"build": "NODE_ENV=production next build",
"deploy": "vercel deploy",
},
"dependencies": {
"@aws-sdk/client-eventbridge": "^3.406.0",
"@headlessui/react": "^1.7.10",
"@heroicons/react": "^2.0.15",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^2.9.10",
"@next-auth/prisma-adapter": "^1.0.5",
"@prisma/client": "^4.11.0",
"@tanstack/react-query": "^4.16.0",
"@trpc/client": "^10.0.0",
"@trpc/next": "^10.0.0",
"@trpc/react-query": "^10.0.0",
"@trpc/server": "^10.0.0",
"chalk": "^5.2.0",
"chart.js": "^4.2.1",
"chartjs-adapter-date-fns": "^3.0.0",
"date-fns": "^2.29.3",
"next": "13.0.2",
"next-auth": "^4.19.2",
"next-connect": "^0.13.0",
"next-superjson-plugin": "^0.5.6",
"node-fetch": "^2.6.7",
"node-mailjet": "^5.1.1",
"nodemailer": "^6.8.0",
"quirrel": "^1.13.2",
"react": "18.2.0",
"react-chartjs-2": "^5.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.41.5",
"react-icons": "^4.7.1",
"styled-components": "^5.3.6",
"superjson": "1.9.1",
"uptime-check": "^4.2.0",
"uuid": "^9.0.0",
"zod": "3.21.1",
"zod-error": "^1.5.0",
"zod-prisma-types": "^2.5.1"
}
Example No response Steps to Reproduce npm run build npm run deploy
No description
1 Reply
fotoflo
fotoflo10mo ago
So the answer was to debug using npm install --verbose in the build step... once i did that i could find out the detail of the problem