Skip to content

Commit

Permalink
chore: Remove issue link from "Client did not initialize yet" (#24117)
Browse files Browse the repository at this point in the history
Most of the issues we are getting from it are solved by running `prisma
generate` as the error message suggests. When it is not, people would
likely open issue anyway.
  • Loading branch information
SevInf committed May 8, 2024
1 parent c22724e commit 52589ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/client/scripts/default-deno-edge.ts
@@ -1,8 +1,7 @@
class PrismaClient {
constructor() {
throw new Error(
`@prisma/client/deno/edge did not initialize yet. Please run "prisma generate" and try to import it again.
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
'@prisma/client/deno/edge did not initialize yet. Please run "prisma generate" and try to import it again.',
)
}
}
Expand Down
5 changes: 1 addition & 4 deletions packages/client/src/scripts/default-index.ts
Expand Up @@ -4,10 +4,7 @@ import { clientVersion } from '../runtime/utils/clientVersion'

export class PrismaClient {
constructor() {
throw new Error(
`@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.')
}
}

Expand Down

0 comments on commit 52589ae

Please sign in to comment.