Do I need to install the @prisma/client package if I'm using the prisma-client generator?
Basically the question from the title. I'm new to Prisma, currently using
v6.16.1 and according to most of the guides that I've read, the @prisma/client package must be installed. But to my understanding, the @prisma/client package is only used to "host" the generated client, which is not the behavior of the new prisma-client generator provider. So, should I still install this package?2 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai channel awaits if you're curious!You would still need to install @prisma/client package with the new prisma-client generator.
Here are several examples for the new prisma client generator which will be helpful:
https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client
GitHub
prisma-examples/generator-prisma-client at latest · prisma/prisma-...
🚀 Ready-to-run Prisma example projects. Contribute to prisma/prisma-examples development by creating an account on GitHub.