-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Property '$on' is missing in type #65
Comments
Hi @JoshuaM1995 have a look at the extensions example which uses Extended Prisma Client nestjs-prisma/examples/extensions/src/prisma.extension.ts Lines 3 to 13 in 2b93c9e
Use
|
I tested the extensions example with the latest prisma version 4.16.1 and I am seeing the same error as you:
This might be an issue with the latest prisma version. Either |
@JoshuaM1995 I found the following issue about disallowing You can find it also in the release notes from 4.16.0 |
Thanks for looking into this. Are there any plans for supporting Prisma 4.16.0 any time soon? I can help contribute if possible. If not I can try downgrading. That was the first thing I tried, but even after downgrading |
Also, maybe it would be safer to lock prisma to a patch version in the package.json? @marcjulian
|
Update: I was able to solve this temporarily with PNPM by adding this to my package.json:
|
- $on is not available for extended PrismaClients
@JoshuaM1995 I have update it to the latest prisma client and added support for extension GA. Please try it out with the latest dev release:
|
This has been released with 0.21.0 |
I'm using a custom prisma client, and for some reason I'm getting TypeScript errors. They appear to be related to the prisma client type not matching the type in the package.
Here's my custom prisma module:
My custom prisma client:
And here's the error:
When I comment out the
$extends
in the custom prisma client, the error goes away. I followed the documentation and it was working at one point. I'm not sure if one of the latest updates broke it? Here are my versions:@prisma/client: 4.16.1
prisma: 4.16.1
nestjs-prisma: 0.20.1
The text was updated successfully, but these errors were encountered: