diff --git a/content/800-guides/430-nestjs.mdx b/content/800-guides/430-nestjs.mdx index 0be7bc23c4..11cf0dc431 100644 --- a/content/800-guides/430-nestjs.mdx +++ b/content/800-guides/430-nestjs.mdx @@ -73,14 +73,16 @@ This creates a new `prisma` directory with the following contents: - `prisma.config.ts`: A configuration file for your projects - `.env`: A [dotenv](https://github.com/motdotla/dotenv) file, typically used to store your database credentials in a group of environment variables -### 2.3. Set the generator output path +### 2.3. Set the generator output path and update the module format -Specify your output `path` for the generated Prisma client either by passing `--output ../src/generated/prisma` during `prisma init`, or directly in your Prisma schema: +Specify your output `path` for the generated Prisma client by either passing `--output ../src/generated/prisma` during `prisma init` or directly in your Prisma schema. Also, update the `moduleFormat` to `cjs`: ```prisma file=prisma/schema.prisma generator client { provider = "prisma-client" output = "../src/generated/prisma" + // add-next-line + moduleFormat = "cjs" } ```