Prisma adapter not working with NextAuth and PlanetScale #5456
-
Adapter type@next-auth/prisma-adapter EnvironmentSystem: Reproduction URLhttps://app.nite.is/auth/signin Describe the issueIm kinda new to NextAuth, and i wanted to try it with Prisma. Everything works perfectly locally, but whenever i try to sign in in my production environment i get a callback error and stay in the signin page. TypeError: cannot read property findmany of undefined Now i get no errors anymore, but it still doesn't authenticate me. my [...nextauth].js file looks like this: import NextAuth from "next-auth"; const prisma = new PrismaClient(); export const authOptions = { providers: [ secret: process.env.JWT_SECRET, How to reproduce
Expected behaviorSigning in without redirecting to signin page |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
SOLVED: i solved by updating some prisma libraries for my application though this command: |
Beta Was this translation helpful? Give feedback.
SOLVED:
i solved by updating some prisma libraries for my application though this command:
npm i --save-dev prisma@latest @prisma/client@latest