PrismaP
Prisma7mo ago
6 replies
chr.yx

PrismaClientInitializationError on vercel

Error [PrismaClientInitializationError]:
Invalid prisma.user.findFirst() invocation:


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 "app/generated/prisma".

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/app/generated/prisma
/var/task/.next/server
/vercel/path0/app/generated/prisma
/var/task/.prisma/client
/tmp/prisma-engines
at oj.handleRequestError (.next/server/chunks/131.js:114:8288)
at oj.handleAndLogRequestError (.next/server/chunks/131.js:114:7049)
at oj.request (.next/server/chunks/131.js:114:6756)
at async s (.next/server/chunks/131.js:126:7629)
at async Object.findOne (.next/server/chunks/697.js:85:66659)
at async Object.findOne (.next/server/chunks/697.js:1:13740)
at async (.next/server/chunks/697.js:85:71616)
at async r (.next/server/chunks/697.js:95:176997)
at async i.<computed> [as signInUsername] (.next/server/chunks/697.js:93:140754) {
clientVersion: '6.11.1',
errorCode: undefined
}
Prisma
Build, fortify, and grow your application easily with an intuitive data model, type-safety, automated migrations, connection pooling and caching.
Prisma | Instant Postgres plus an ORM for simpler db workflows
GitHub
Hi, you have been directed to this discussion because we want to learn more about your project setup. Thanks to your answers, we will be able to make better design decisions in the future. We&#39;d...
User questions: Engine not found (bundler) · prisma prisma · Disc...
Was this page helpful?