Can't use prisma in auth.config.ts
I get the following runtime error when I try to query with prisma in my auth.config.js file: "TypeError: Cannot read properties of undefined (reading 'modules')"
"dependencies": {
"@auth/prisma-adapter": "^2.9.1",
"@hookform/resolvers": "^5.1.1",
"@prisma/client": "^6.9.0",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-slot": "^1.2.3",
"bcrypt": "^6.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.515.0",
"next": "15.3.3",
"next-auth": "^5.0.0-beta.28",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.57.0",
"react-icons": "^5.5.0",
"tailwind-merge": "^3.3.1",
"zod": "^3.25.64"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/bcrypt": "^5.0.2",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"auth": "^1.2.3",
"eslint": "^9",
"eslint-config-next": "15.3.3",
"prisma": "^6.9.0",
"tailwindcss": "^4",
"tw-animate-css": "^1.3.4",
"typescript": "^5"
}
8 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai channel awaits if you're curious!Auth.js | Edge Compatibility
Authentication for the Web
Hey!
Is your project open source?
If yes, can you share a link? It will be helpful in debugging this
Hi, yes it is.
[deleted repo link]
In the recent version of the project, I tried to use accelerate but it didn't help
@johnson
@🔨 Moderator Is this legit ?

I am not clicking a link I don't know about
He deleted his message
I unfortunately clicked on it but it seems to be a link to another discord server
It is not. We will never redirect people to other server discord. The current server is the only one.
I found a solution to my problem. This can be closed