steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.82k stars 423 forks source link

Error occurred prerendering page "/sitemap.xml" #48

Open Vent3st opened 1 year ago

Vent3st commented 1 year ago

Error occurred prerendering page "/sitemap.xml". Read more: https://nextjs.org/docs/messages/prerender-error Error: Invalidprisma.user.findMany()invocation: The tablepublic.Userdoes not exist in the current database. at pn.handleRequestError (/vercel/path0/node_modules/.pnpm/@prisma+client@4.13.0_prisma@4.13.0/node_modules/@prisma/client/runtime/library.js:176:6477) at pn.request (/vercel/path0/node_modules/.pnpm/@prisma+client@4.13.0_prisma@4.13.0/node_modules/@prisma/client/runtime/library.js:176:5786) at async t._request (/vercel/path0/node_modules/.pnpm/@prisma+client@4.13.0_prisma@4.13.0/node_modules/@prisma/client/runtime/library.js:179:10484) at async sitemap (/vercel/path0/.next/server/app/sitemap.xml/route.js:154:19) at async GET (/vercel/path0/.next/server/app/sitemap.xml/route.js:183:16) info - Generating static pages (5/5)

anscg commented 1 year ago

Seems like a duplicate of #46

vignesh-gupta commented 1 year ago

hey @Vent3st, run npx prisma db push

set pre-build as next build in package.json