language · inferred from evidence
cjs
CommonJS module format, specified as a value for the 'moduleFormat' configuration.
- 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