thenandthan
thenandthan
Explore posts from servers
PPrisma
Created by thenandthan on 4/30/2024 in #help-and-questions
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-report
20: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:17
20: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 occurred
20: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:15
20: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-report
20: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:17
20: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 occurred
20: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:15
20: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
Dependencies:
"dependencies": {
"@neondatabase/serverless": "^0.9.1",
"@prisma/adapter-neon": "^5.13.0",
"@prisma/client": "^5.13.0",
"dotenv": "^16.4.5",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18",
"ws": "^8.17.0"
},
"dependencies": {
"@neondatabase/serverless": "^0.9.1",
"@prisma/adapter-neon": "^5.13.0",
"@prisma/client": "^5.13.0",
"dotenv": "^16.4.5",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18",
"ws": "^8.17.0"
},
I am running npx @cloudflare/next-on-pages to build.
2 replies
CDCloudflare Developers
Created by thenandthan on 4/10/2024 in #general-help
Making it so only specific emails are allowed to login.
No description
6 replies