You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting "PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in 'node')" after Upgrading prisma
#137
After upgrading prisma and prisma-client to 5.10.2 and upgrade jest-prisma to 1.8.0 I have been getting
PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in "node"). If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report
Full error:
● Test suite failed to run
PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `node`).
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report
at Object.get (../../../node_modules/.prisma/client/index-browser.js:505:15)
at PrismaEnvironmentDelegate.teardown (../../../node_modules/@quramy/jest-prisma-core/lib/delegate.js:69:29)
at PrismaEnvironment.teardown (../../../node_modules/@quramy/jest-prisma/lib/environment.js:22:60)
After upgrading
prisma
andprisma-client
to5.10.2
and upgradejest-prisma
to1.8.0
I have been gettingPrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in "node"). If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report
Full error:
I think is related to this line:
https://github.com/Quramy/jest-prisma/blob/main/packages/jest-prisma/src/environment.ts#L4
The text was updated successfully, but these errors were encountered: