Open rodrigo4244 opened 7 months ago
Hi @rodrigo4244.
Workaround for now is to change client location and not generate it into @prisma/client
subfolder. Even if we manage to fix it in 5.x this is very likely will be a hard error in a future major version of the client.
@SevInf Thanks for your reply, it makes sense that we generate the output of the client outside of node_modules/@prisma/client
. Will try that at some point later in the week
Bug description
I am getting the following error when I upgrade from Prisma v5.8.1 to v5.11.0 (I tried v5.9.1 and it failed too) and try to build my code:
Seems like import works for type checking but when building server side of pages using NextJS it throws "cannot find prisma client" module.
How to reproduce
Expected behavior
Build to complete with newest version
Prisma information
Environment & setup
Prisma Version
Works:
Doesn't work: