P
Prisma•6mo ago
izacd1

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
Prisma AI Help
Prisma AI Help•6mo ago
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
izacd1
izacd1OP•6mo ago
I tried following this tutorial: https://authjs.dev/guides/edge-compatibility But it didn't help
Auth.js | Edge Compatibility
Authentication for the Web
Nurul
Nurul•6mo ago
Hey! Is your project open source? If yes, can you share a link? It will be helpful in debugging this
izacd1
izacd1OP•6mo ago
Hi, yes it is. [deleted repo link] In the recent version of the project, I tried to use accelerate but it didn't help
izacd1
izacd1OP•6mo ago
@johnson @🔨 Moderator Is this legit ?
No description
izacd1
izacd1OP•6mo ago
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
Olyno
Olyno•6mo ago
It is not. We will never redirect people to other server discord. The current server is the only one.
izacd1
izacd1OP•6mo ago
I found a solution to my problem. This can be closed

Did you find this page helpful?