Replies: 8 comments 6 replies
|
Hello @pfiadDi 👋 No, you don't need to import any additional types. |
|
I am getting this same error. Was this ever resolved? |
|
Same error here: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma |
|
Hi there, To keep our discussions organized and focused on the most relevant topics, we’re reviewing and tidying up our backlog. As part of this process, we’re closing discussions that haven’t had any recent activity and appear to be outdated. If this discussion is still important to you or unresolved, we’d love to hear from you! Feel free to reopen it or start a new one with updated details. For more details about our priorities and vision for the future of Prisma ORM, check out our latest blog post: https://www.prisma.io/blog/prisma-orm-manifesto. Thank you for your understanding and being part of the community! |
|
use yarn |
|
Instead of : try: make sure you update so the path to your generated folder is correct |
|
This doesn't work for me. prisma@6.18.0. This does work: |
Same here with prisma@7.4.0 EDIT : Looks working with : import { Prisma } from '/path/to/database/prisma/generated/client';
// ...
try {
// ...
} catch(err) {
if (err instanceof Prisma.PrismaClientKnownRequestError && err.code === 'P2002') {
// ...
}
} |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I get above error when I try to to check the error type as suggested in the docs:
if (err instanceof Prisma.PrismaClientKnownRequestError) {I import:
import { Prisma } from "@prisma/client";Do I have to install additional types (none found) or do I need to import anything else?
Thanks
Br
All reactions