Setting up NextAuth with Prisma and Neon for Edge runtime (Cannot read properties of undefined (reading 'exec')) #12760
Unanswered
LarsHanegraaf
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
-
Hi all
I'm trying to setup NextAuth with the database strategy while running on Vercel. However I get the error
Cannot read properties of undefined (reading 'exec')
. I think it has to do with the Prisma client generation for edge, but I'm not sure how to move forward. Please help :)My assumptions
Context
Packages
Running on a Mac M2 with Sequoia
auth.ts
middleware.ts
What doesn't work
When I start my application, I get the following error:
When I clone this repo, upgrade the packages and change it to use Microsoft Entra, it seems to 'kind of' work, although still a lot of warnings are thrown.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions