Replies: 1 comment
-
Hi @mayur4895 Thank you for raising this question. The error you're encountering is due to trying to run PrismaClient in a browser environment. PrismaClient is designed to run in a server-side environment and does not work on the client side as browsers do not execute SQL queries.
Remember, Prisma Client should be added to your Node.js app or inside the backend functions of Next.js. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug description
Uncaught (in promise) Error: PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in
unknown
).How to reproduce
Expected behavior
No response
Prisma information
// Add your schema.prisma
// Add your code using Prisma Client
Environment & setup
Prisma Version
Beta Was this translation helpful? Give feedback.
All reactions