First time building with better auth why does this happen while deployment?

No description
3 Replies
daveycodez
daveycodez6d ago
can you share the full log
Atharv
AtharvOP6d ago
[08:10:29.881] Import trace for requested module: [08:10:29.881] ./node_modules/better-auth/dist/chunk-62MWLLEG.js [08:10:29.881] ./node_modules/better-auth/dist/index.js [08:10:29.881] ./src/lib/auth.ts [08:10:29.881] [08:10:41.494] ✓ Compiled successfully [08:10:41.499] Linting and checking validity of types ... [08:10:57.181] Collecting page data ... [08:10:57.667] Prisma has detected that this project was built on Vercel, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the prisma generate command during the build process. [08:10:57.668] [08:10:57.668] Learn how: https://pris.ly/d/vercel-build [08:10:57.672] Error [PrismaClientInitializationError]: Prisma has detected that this project was built on Vercel, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the prisma generate command during the build process. [08:10:57.673]
Learn to configure your build process on Vercel to avoid caching-re...
Learn to configure your build process on Vercel to avoid caching-related problems
Atharv
AtharvOP6d ago
[08:10:57.674] Learn how: https://pris.ly/d/vercel-build [08:10:57.678] at 5858 (.next/server/app/api/auth/[...all]/route.js:84:70458) [08:10:57.678] at t (.next/server/webpack-runtime.js:1:127) [08:10:57.678] at r (.next/server/app/api/auth/[...all]/route.js:84:82898) [08:10:57.678] at <unknown> (.next/server/app/api/auth/[...all]/route.js:84:82925) [08:10:57.679] at t.X (.next/server/webpack-runtime.js:1:1191) [08:10:57.679] at <unknown> (.next/server/app/api/auth/[...all]/route.js:84:82911) [08:10:57.679] at Object.<anonymous> (.next/server/app/api/auth/[...all]/route.js:84:82952) { [08:10:57.679] clientVersion: '6.4.1', [08:10:57.679] errorCode: undefined [08:10:57.679] } [08:10:57.681] [08:10:57.682] > Build error occurred [08:10:57.682] [Error: Failed to collect page data for /api/auth/[...all]] { [08:10:57.682] type: 'Error' [08:10:57.682] } [08:10:57.693] error: script "build" exited with code 1 [08:10:57.702] Error: Command "bun run build" exited with 1 [08:10:57.998]
Learn to configure your build process on Vercel to avoid caching-re...
Learn to configure your build process on Vercel to avoid caching-related problems

Did you find this page helpful?