DrewHack
Explore posts from serversPPrisma
•Created by DrewHack on 4/22/2025 in #help-and-questions
Runtime Error on latest versions of Next, AuthJS, and Prisma when initializing prisma adapter
rolling back to @auth/prisma-adapter 2.7.4 resolved my issue
10 replies
PPrisma
•Created by DrewHack on 4/22/2025 in #help-and-questions
Runtime Error on latest versions of Next, AuthJS, and Prisma when initializing prisma adapter
TypeError: Cannot read properties of undefined (reading 'exec')
at that point so something different. I think there might be some other version changes causing issues. When I pulled down Jon's sample
https://github.com/prisma/nextjs-prisma-postgres-demo/tree/main
running it from scratch worked
after I ran npm update and ran it it's also giving the same error (reading 'exec')
I haven't had a chance to really compare the package files to see exactly what versions worked and what was updated
Going down to prisma 6.3.0 didn't seem to resolve it.
I haven't checked if it's the @auth/prisma-adapter yet
10 replies
PPrisma
•Created by DrewHack on 4/22/2025 in #help-and-questions
Runtime Error on latest versions of Next, AuthJS, and Prisma when initializing prisma adapter
(I'm not entirely sure this is certainly a Prisma or AuthJS issue)
10 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 7/10/2023 in #questions
Trying to setup NextAuth with middleware.tsx file - login is happening but always returns to login
I believe it was setting the strategy to JWTs
9 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 8/22/2023 in #questions
Pretty Basic (I think) React / Tailwind / Next question
Awesome thank you! Honestly I was so stuck on this I think. That’s a great jumping off point to be honest
9 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 8/22/2023 in #questions
Pretty Basic (I think) React / Tailwind / Next question
I’m still thinking with a PHP brain
9 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 8/22/2023 in #questions
Pretty Basic (I think) React / Tailwind / Next question
Yeah I was able to get what he was doing working in the base example but once I started trying to adapt it is where things went awry
9 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 8/22/2023 in #questions
Pretty Basic (I think) React / Tailwind / Next question
9 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 7/10/2023 in #questions
Trying to setup NextAuth with middleware.tsx file - login is happening but always returns to login
figured it out
9 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 7/10/2023 in #questions
Trying to setup NextAuth with middleware.tsx file - login is happening but always returns to login
for good measure testing and renaming to .ts from .tsx did not change the behaviour
9 replies
TTCTheo's Typesafe Cult
•Created by DrewHack on 7/10/2023 in #questions
Trying to setup NextAuth with middleware.tsx file - login is happening but always returns to login
Seems like that is not the issue. without middleware.tsx the page renders without auth. With it, it renders with auth. I think the issue may be more related to my nextauth callbacks and I was looking in the wrong place
9 replies