Hi, I used `npx prisma generate` with a output dir...
# orm-help
s
Hi, I used
npx prisma generate
with a output directory provided in the Schema. My
package.json
is configured with
"type": "module"
. This import doesn't quite work.
Copy code
import { PrismaClient }  from '../../prisma-client/index.js' 
let prisma = new PrismaClient();```
The error I get even when running
node --experimental-specifier-resolution=node server.js
is
The requested module '../../prisma-client/index.js' does not provide an export named 'PrismaClient'
a
Hey Shahrukk 👋 , Are you using TypeScript? Prisma doesn’t yet ship with a native ESM export, so you will need to use CommonJS or transpile to CommonJS. Most TS setups do this for you.