require() of ES Module when running `prisma db seed `

 Getting this error and able to resolve it using 


 "prisma": {
    "seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
  },

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm