Cloudflare Pages Error: @prisma/client did not initialize yet. Please run "prisma generate" and try
This is my error log from Cloudflare:
20:50:29.629 ▲ Collecting page data ...20:50:30.354 ▲ Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.20:50:30.355 ▲ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report20:50:30.355 ▲ at new PrismaClient (/opt/buildhome/repo/frontend/node_modules/.prisma/client/default.js:43:11)20:50:30.355 ▲ at 2357 (/opt/buildhome/repo/frontend/.next/server/app/page.js:25:570)20:50:30.355 ▲ at Function.t (/opt/buildhome/repo/frontend/.next/server/webpack-runtime.js:1:127)20:50:30.355 ▲ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)20:50:30.355 ▲ at async collectGenerateParams (/opt/buildhome/repo/frontend/node_modules/next/dist/build/utils.js:919:21)20:50:30.356 ▲ at async /opt/buildhome/repo/frontend/node_modules/next/dist/build/utils.js:1138:1720:50:30.356 ▲ at async Span.traceAsyncFn (/opt/buildhome/repo/frontend/node_modules/next/dist/trace/trace.js:151:20)20:50:30.356 ▲ 20:50:30.356 ▲ > Build error occurred20:50:30.358 ▲ Error: Failed to collect page data for /20:50:30.358 ▲ at /opt/buildhome/repo/frontend/node_modules/next/dist/build/utils.js:1258:1520:50:30.359 ▲ at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {20:50:30.359 ▲ type: 'Error'20:50:30.359 ▲ }20:50:30.400 ▲ Error: Command "npm run build" exited with 1
20:50:29.629 ▲ Collecting page data ...20:50:30.354 ▲ Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.20:50:30.355 ▲ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report20:50:30.355 ▲ at new PrismaClient (/opt/buildhome/repo/frontend/node_modules/.prisma/client/default.js:43:11)20:50:30.355 ▲ at 2357 (/opt/buildhome/repo/frontend/.next/server/app/page.js:25:570)20:50:30.355 ▲ at Function.t (/opt/buildhome/repo/frontend/.next/server/webpack-runtime.js:1:127)20:50:30.355 ▲ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)20:50:30.355 ▲ at async collectGenerateParams (/opt/buildhome/repo/frontend/node_modules/next/dist/build/utils.js:919:21)20:50:30.356 ▲ at async /opt/buildhome/repo/frontend/node_modules/next/dist/build/utils.js:1138:1720:50:30.356 ▲ at async Span.traceAsyncFn (/opt/buildhome/repo/frontend/node_modules/next/dist/trace/trace.js:151:20)20:50:30.356 ▲ 20:50:30.356 ▲ > Build error occurred20:50:30.358 ▲ Error: Failed to collect page data for /20:50:30.358 ▲ at /opt/buildhome/repo/frontend/node_modules/next/dist/build/utils.js:1258:1520:50:30.359 ▲ at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {20:50:30.359 ▲ type: 'Error'20:50:30.359 ▲ }20:50:30.400 ▲ Error: Command "npm run build" exited with 1