PrismaP
Prisma6mo ago
6 replies
JessePinkman

@prisma/client still points to .prisma/client instead of custom-set output

I recently modified my schema to use the new "prisma-client" provider, and I had to specify an output path for where the generated files will be.
generator client {
  provider        = "prisma-client"
  previewFeatures = ["driverAdapters"]
  output          = "../src/generated/prisma"
}


The problem is, @prisma/client still points to the client generated in node_modules?
I don't understand this stuff fully, but shouldn't
node_modules/@prisma/client/default.d.ts
export from "../src/generated/prisma" instead of this:
export * from '.prisma/client/default'


Either I'm doing something really wrong or I need to explicitly import from the custom output path I set, instead of from @prisma/client 🤷‍♂️
Was this page helpful?