Problem with Prisma Adapter on edge runtime #12824
Unanswered
JacoboGanon
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having an issue with the Prisma Adapter on edge runtime.
I have been investigating for a while now and I really can only pinpoint it to this.
I am using a database strategy with prisma. I have Prisma 5.12 + as indicated that is needed for edge runtime, I am using neon serverless adapter, and I have tried the queries on edge runtime and they work (before calling auth()), so interacting with the database should be possible.
The problem is in any API route that is running in edge the moment I call auth() I get the following error:
TypeError: Cannot read properties of undefined (reading 'exec')
[project]/node_modules/@prisma/client/runtime/library.js [app-edge-route] (ecmascript)
.next\server\edge\chunks\node_modules_@prisma_client_002dadf4._.js (1323:39)
My authconfig is defined as follows:
Beta Was this translation helpful? Give feedback.
All reactions