Build fails on pages 404 + 500
Unanswered
Tornjak posted this in #help-forum
TornjakOP
This is in a app directory next js app
14 Replies
Giant panda
can you show where you placed 404 and 500 files and its contents
@Giant panda can you show where you placed 404 and 500 files and its contents
TornjakOP
i dont have any
never did, and built fine before
Can you show your files structure inside /app?
Maybe the error is in
global-error.tsx?Check if the error contains additional information
TornjakOP
@acme/nextjs:build: at /vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:31:4173
@acme/nextjs:build: at a (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:31:4248)
@acme/nextjs:build: at Object.t [as renderPage] (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:31:3446)
@acme/nextjs:build: at Object.defaultGetInitialProps (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:25:3527)
@acme/nextjs:build: at P.getInitialProps (/vercel/path0/apps/nextjs/.next/server/chunks/459.js:6:2235)
@acme/nextjs:build: at X (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:16:5053)
@acme/nextjs:build: at n (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:31:3646)
@acme/nextjs:build: at e9 (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:31:4540)
@acme/nextjs:build: Generating static pages (10/20)
@acme/nextjs:build: Generating static pages (15/20) get this locally too
Giant panda
Do you have pages directory
TornjakOP
no
TornjakOP
yeah i mean this is litterally it