language · inferred from evidence
ESM
ECMAScript Modules, the default output format for the 'prisma-client' provider.
- ReferenceError: exports is not defined in ES module scope with provider = "prisma-client"
Add moduleFormat = "cjs" to your generator block: generator client { provider = "prisma-client" output = "./client" moduleFormat = "cjs" } Then delete the old generated output and re-run prisma generate. The reporter and several lat