PrismaP
Prisma7mo ago
9 replies
inhanbyeol

Does declaring ‘prisma-client’ in a provider eliminate the need to install @prisma/client?

v6.10.1

generator client {
  provider     = "prisma-client"
  output       = "../core/database/generated/prisma"
  moduleFormat = "cjs"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}


I can create it in the root directory via @prisma-client, which is great because it speeds up caching. However, if I don't install @prisma/client, I get an error. Is this normal?
Was this page helpful?