Build fail Vercel
Unanswered
Tomistoma posted this in #help-forum
TomistomaOP
I am trying to build my next app using next 15.0.2 and react 19 in Vercel but I am having some trouble. Same app builds locally and in DO
web:build: at async (/vercel/path0/node_modules/.pnpm/next@15.0.2_@babel+core@7.24.7_@opentelemetry+api@1.9.0_@playwright+test@1.47.2_react-dom@19._kvsfdxgipaabwv5pfm6orhkvqi/node_modules/next/dist/build/utils.js:1128:28)
web:build: at async Span.traceAsyncFn (/vercel/path0/node_modules/.pnpm/next@15.0.2_@babel+core@7.24.7_@opentelemetry+api@1.9.0_@playwright+test@1.47.2_react-dom@19._kvsfdxgipaabwv5pfm6orhkvqi/node_modules/next/dist/trace/trace.js:153:20) {
web:build: code: 'ERR_INVALID_URL',
web:build: input: 'v2-preview-git-deploy-vercel-2-team-gpt.vercel.app'
web:build: }
web:build: }
web:build:
web:build: > Build error occurred
web:build: Error: Failed to collect page data for /_not-found
web:build: at <unknown> (/vercel/path0/node_modules/.pnpm/next@15.0.2_@babel+core@7.24.7_@opentelemetry+api@1.9.0_@playwright+test@1.47.2_react-dom@19._kvsfdxgipaabwv5pfm6orhkvqi/node_modules/next/dist/build/utils.js:1233:15) {
web:build: type: 'Error'
web:build: }
web:build: ELIFECYCLE Command failed with exit code 1.
web:build: ERROR: command finished with error: command (/vercel/path0/apps/web) /pnpm9/node_modules/.bin/pnpm run build exited (1)
web#build: command (/vercel/path0/apps/web) /pnpm9/node_modules/.bin/pnpm run build exited (1)
Tasks: 7 successful, 8 total
1 Reply
TomistomaOP
Some extra logs
web:build: VERCEL_BRANCH_URL: 'v2-preview-git-deploy-vercel-2-team-gpt.vercel.app',
web:build: VERCEL_URL: 'v2-preview-ndjfgeobc-team-gpt.vercel.app',
web:build: NEXTAUTH_URL: 'https://v2-preview-git-deploy-vercel-2-team-gpt.vercel.app',
web:build: PORT: undefined