P
Prisma5mo ago
Charlie

npx prisma generate --no-engine, breaking nextjs build

HI guys. Just started with accelerate + postgres. Reading the documentation we should be using npx prisma generate --no-engine to minize package size. However during the ci build (nextjs) after generate. We are seeing a error saying:
Error: ENOENT: no such file or directory, lstat '/home/runner/work/gauge-mono/gauge-mono/node_modules/.pnpm/@prisma+client@6.11.1_prisma@6.11.1_typescript@5.8.2__typescript@5.8.2/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node'
Error: ENOENT: no such file or directory, lstat '/home/runner/work/gauge-mono/gauge-mono/node_modules/.pnpm/@prisma+client@6.11.1_prisma@6.11.1_typescript@5.8.2__typescript@5.8.2/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node'
wonder how we can get around it? Thank you.
6 Replies
Prisma AI Help
Prisma AI Help5mo ago
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
Charlie
CharlieOP5mo ago
also found out today. if I use the no-engine option to generate the client. I cannot use normal postgres url. This present a problme in testing where is just a normal docker postgres.
Nurul
Nurul5mo ago
Yes, if you need normal postgres url, then it will still require the engines. Though, this will change with Prisma 7. Do you get the same error if you don't use the --no-engine flag?
Charlie
CharlieOP5mo ago
Thank you for the reply. Yes in my CI when building nextjs. That error comes when i generate w/ --no-engine. the test discovery is a 2nd problem
Nurul
Nurul5mo ago
I meant do you get the same error even if you don't pass the --no-engine flag in the CI?
Charlie
CharlieOP5mo ago
sorry.. if we dont use --no-engine we DO NOT get the error HI @Nurul did i loose you?

Did you find this page helpful?