diff --git a/content/300-accelerate/200-getting-started.mdx b/content/300-accelerate/200-getting-started.mdx index f0a8d9c1dc..854759b683 100644 --- a/content/300-accelerate/200-getting-started.mdx +++ b/content/300-accelerate/200-getting-started.mdx @@ -122,6 +122,23 @@ If your Prisma version is below `5.0.0`, generate Prisma Client with the `--data npx prisma generate --data-proxy ``` +If your Prisma version is above `5.0.0` or `6.0.0` , and then it cannot find PrismaClient imported from Edge, try this: +```terminal +npx prisma generate --data-proxy +``` +and make the output field optional.(This caused the prisma/client/edge import to work functionally) + +```prisma +generator client { + provider = "prisma-client-js" + // output = "../src/generated/prisma" +} +datasource db { + provider = "postgresql" + url = env("DATABASE_URL") +} +``` + ::: ### 2.4. Extend your Prisma Client instance with the Accelerate extension