Replies: 9 comments 35 replies
-
Beta Was this translation helpful? Give feedback.
-
|
You need to generate the prisma client using I find that it helps when you cmd+click into |
Beta Was this translation helpful? Give feedback.
-
|
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 have already been marked as answered but remain open. If this discussion still requires further input or clarification, feel free to reopen it or start a new one with updated details. Your contributions are invaluable to the community, and we’re here to help! 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 ongoing support of the Prisma community! |
Beta Was this translation helpful? Give feedback.
-
|
I had a similar problem and it was resolved by rm -rf node_modules |
Beta Was this translation helpful? Give feedback.
-
|
I had the same problem after I make "npx prisma generate" but you can directly insert the url of PrismaClient folder instead of using "@prisma/client" you can use something "../generated/prisma" like this based on the generated PrismaClient folder |
Beta Was this translation helpful? Give feedback.
-
|
I have faced the same problem. when i commented the output path in schema.prisma file , it generated the output inside the node module and error gone. |
Beta Was this translation helpful? Give feedback.
-
|
Facing similar problems just make the changes in schema file generator client { |
Beta Was this translation helpful? Give feedback.
-
|
i was facing same issue ->Module '"@prisma/client"' has no exported member 'PrismaClient' import { PrismaClient } from '@prisma/client'; but my compiler was throwing error Module '"@prisma/client"' has no exported member 'PrismaClient'. so in my case my schema.prisma, I had this generator block: -> so either you have to delete this output = "../generated/prisma" -> this output part or either you have to |
Beta Was this translation helpful? Give feedback.
-
|
1. Make sure that prisma is installed 2. Add the generator definition in schema.prisma file 3. Then install @prisma/client 4. Then run the following command 5. Then instantiate prisma client This is the best way according to documentation. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
I'm getting this error in VScode after following this example's getting started steps, in the provided
seed.tsfile.Other imports work just fine.
I have never used Prisma before. I'm just following the steps listed.
This problem popped up after the step
npm i, which tells me either the example is set up wrong, or something specific on my computer is bollocksing up something. No idea. I assume these examples have been tested at some point, so I guess it must be something on my end. Otoh, I have never had this problem with typescript packages if they properly export their things.How to reproduce
Literally follow this:
https://github.com/prisma/prisma-examples/tree/latest/typescript/rest-nextjs-api-routes-auth
Expected behavior
No errors.
Prisma information
I really don't think it's relevant what the schema is. If it is, please have a look at the linked example 😉
Environment & setup
Prisma Version
Beta Was this translation helpful? Give feedback.
All reactions