turbopack monorepo prisma issue
Unanswered
cameron posted this in #help-forum
cameronOP
⨯ Error [PrismaClientInitializationError]:
Invalid
Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".
This is likely caused by tooling that has not copied "query-engine-rhel-openssl-3.0.x" to the deployment folder.
Ensure that you ran
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-tooling-investigation
The following locations have been searched:
/var/task/node_modules/.prisma/client
/var/task/node_modules/@prisma/client
/vercel/path0/node_modules/@prisma/client
/tmp/prisma-engines
at async a (.next/server/chunks/2e52ddea..js:37:84471)
at async (.next/server/chunks/2e52ddea..js:37:84531) {
clientVersion: '6.18.0',
errorCode: undefined,
retryable: undefined,
page: '/api/trpc/user.auth.initiateEmailLogin'
}
Dont waste ur time getting it to work
--turbopack
/ Prisma - Don't bundle, use external packages /
serverExternalPackages: ["@prisma/client", "prisma"],
outputFileTracingIncludes: {
"/": ["../../node_modules/.prisma/client//*"],
},
webpack: (config, { isServer }) => {
if (isServer) {
config.externals = config.externals || [];
config.externals.push({
"@prisma/client": "@prisma/client",
prisma: "prisma",
});
}
return config;
},
someone pls fix
Invalid
prisma.state.findMany() invocation:Prisma Client could not locate the Query Engine for runtime "rhel-openssl-3.0.x".
This is likely caused by tooling that has not copied "query-engine-rhel-openssl-3.0.x" to the deployment folder.
Ensure that you ran
prisma generate and that "query-engine-rhel-openssl-3.0.x" has been copied to "../../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-tooling-investigation
The following locations have been searched:
/var/task/node_modules/.prisma/client
/var/task/node_modules/@prisma/client
/vercel/path0/node_modules/@prisma/client
/tmp/prisma-engines
at async a (.next/server/chunks/2e52ddea..js:37:84471)
at async (.next/server/chunks/2e52ddea..js:37:84531) {
clientVersion: '6.18.0',
errorCode: undefined,
retryable: undefined,
page: '/api/trpc/user.auth.initiateEmailLogin'
}
Dont waste ur time getting it to work
--turbopack
/ Prisma - Don't bundle, use external packages /
serverExternalPackages: ["@prisma/client", "prisma"],
outputFileTracingIncludes: {
"/": ["../../node_modules/.prisma/client//*"],
},
webpack: (config, { isServer }) => {
if (isServer) {
config.externals = config.externals || [];
config.externals.push({
"@prisma/client": "@prisma/client",
prisma: "prisma",
});
}
return config;
},
someone pls fix