P
Prisma4mo ago
yug

engine type library error

I have added the engine type with library in generate client still it is giving this error
No description
8 Replies
jonfanz
jonfanz4mo ago
Hi there, really hard for us to understand what’s going on without more information. - please post a code snippet - add relevant parts of your Prisma schema - add any other relevant info (frameworks, deployment info, etc) - paste the full error message as text.
yug
yug4mo ago
yug
yug4mo ago
✘ [ERROR] PrismaClientValidationError: Invalid client engine type, please use library or binary at ws (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/@prisma/client/runtime/edge.js:13:65) at new t (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/@prisma/client/runtime/edge.js:30:3724) at null.<anonymous> (file:///Users/yugagarwal105/Desktop/medium/backend/src/index.ts:94:17) at dispatch (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/hono/dist/compose.js:29:23) at null.<anonymous> (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/hono/dist/compose.js:30:20) at cors2 (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/hono/dist/middleware/cors/index.js:70:11) at dispatch (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/hono/dist/compose.js:29:23) at null.<anonymous> (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/hono/dist/compose.js:6:12) at null.<anonymous> (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/hono/dist/hono-base.js:199:31) at Hono2.dispatch (file:///Users/yugagarwal105/Desktop/medium/backend/node_modules/hono/dist/hono-base.js:209:5) { clientVersion: '5.16.1' } [wrangler:inf] POST /api/v1/signup 500 Internal Server Error (52ms) pls solve this error ASAP
RaphaelEtim
RaphaelEtim4mo ago
can you try this command and see if the error persist npx prisma generate --no-engine
yug
yug4mo ago
After doing this this error came up
No description
yug
yug4mo ago
No description
RaphaelEtim
RaphaelEtim4mo ago
It appears you are trying to work with cloudflare workers or pages. This section of the documentation would be most relevant to you.
Deploy to Cloudflare Workers & Pages | Prisma Documentation
Learn the things you need to know in order to deploy an app that uses Prisma Client for talking to a database to a Cloudflare Worker or to Cloudflare Pages.
Want results from more Discord servers?
Add your server