N
Neon8mo ago
cloudy-cyan

PrismaClientInitializationError: Prisma Client could not locate the Query Engine

On Vercel + Neon, I have tried all 1000 different solutions across vercel boards, prisma issues, etc. I can't get anything to work CONSISTENTLY. I had one deploy that worked but the rest have not. I can ls the directory and see that there are query engine files generated to the folder that it says they are not. Has anyone solved this issue? I've spent days on this now.
PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".

We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.

This is likely caused by a bundler that has not copied "libquery_engine-rhel-openssl-3.0.x.so.node" next to the resulting bundle.
Ensure that "libquery_engine-rhel-openssl-3.0.x.so.node" has been copied next to the bundle or in "../../node_modules/.pnpm/@prisma+client@6.3.1_prisma@6.3.1_typescript@5.7.3__typescript@5.7.3/node_modules/.prisma/client".

We would appreciate if you could take the time to share some information with us.
Please help us by answering a few questions: https://pris.ly/engine-not-found-bundler-investigation

The following locations have been searched:
/var/task/node_modules/.pnpm/@prisma+client@6.3.1_prisma@6.3.1_typescript@5.7.3__typescript@5.7.3/node_modules/.prisma/client
/var/task/apps/admin/.next/server/app/(authenticated)
/vercel/path0/node_modules/.pnpm/@prisma+client@6.3.1_prisma@6.3.1_typescript@5.7.3__typescript@5.7.3/node_modules/@prisma/client
/var/task/apps/admin/.next/server/.prisma/client
/tmp/prisma-engines
at al (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:64:756)
at async Object.loadLibrary (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:111:8957)
at async Dr.loadEngine (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:112:448)
at async Dr.instantiateLibrary (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:111:12377)
PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".

We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.

This is likely caused by a bundler that has not copied "libquery_engine-rhel-openssl-3.0.x.so.node" next to the resulting bundle.
Ensure that "libquery_engine-rhel-openssl-3.0.x.so.node" has been copied next to the bundle or in "../../node_modules/.pnpm/@prisma+client@6.3.1_prisma@6.3.1_typescript@5.7.3__typescript@5.7.3/node_modules/.prisma/client".

We would appreciate if you could take the time to share some information with us.
Please help us by answering a few questions: https://pris.ly/engine-not-found-bundler-investigation

The following locations have been searched:
/var/task/node_modules/.pnpm/@prisma+client@6.3.1_prisma@6.3.1_typescript@5.7.3__typescript@5.7.3/node_modules/.prisma/client
/var/task/apps/admin/.next/server/app/(authenticated)
/vercel/path0/node_modules/.pnpm/@prisma+client@6.3.1_prisma@6.3.1_typescript@5.7.3__typescript@5.7.3/node_modules/@prisma/client
/var/task/apps/admin/.next/server/.prisma/client
/tmp/prisma-engines
at al (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:64:756)
at async Object.loadLibrary (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:111:8957)
at async Dr.loadEngine (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:112:448)
at async Dr.instantiateLibrary (/var/task/apps/admin/.next/server/app/(authenticated)/teams/page.js:111:12377)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?