PrismaP
Prisma3mo ago
4 replies
JSteunou

Best practice with import & generated client?

The doc says and advices to set an output folder for the generated client. Default folder inside
node_modules
(.prisma/client) will be removed in v7. Ok no problem.

But what it does not say is: should I import Prisma type and PrismaClient from generated/prisma (whatever output folder) or from
@prisma/client
?

From what I have seen, it seems both are not compatible, it should be all one or other. But vscode always show me both which is annoying.

So what should be the best and v7 bulletproof practice?
Was this page helpful?