Skip to content

Updated getting-started with a generate command issue.mdx #6853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions content/300-accelerate/200-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down