Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x" #27767
Replies: 2 comments
-
Hi @VaishnaviCoders! Could you try adding |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, As we have not heard back from you, we are closing this discussion to keep our discussions organized. Feel free to start a new discussion if this remains relevant. Thank you for being part of the community! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
import { PrismaClient } from '@/generated/prisma/client';
const globalForPrisma = global as unknown as {
prisma: PrismaClient;
};
const prisma = globalForPrisma.prisma || new PrismaClient();
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
export default prisma;
generator client {
provider = "prisma-client"
output = "../generated/prisma"
previewFeatures = ["fullTextSearchPostgres"]
}
// , "queryCompiler", "driverAdapters"
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}
How to reproduce (optional)
Expected behavior (optional)
Information about Prisma Schema, Client Queries and Environment (optional)
// Add your schema.prisma
// Add any relevant Prisma Client queries here
OS:
Database:
Node.js version:
Run
prisma -v
to see your Prisma version and paste itBeta Was this translation helpful? Give feedback.
All reactions