Cannot find module 'better-auth/adapters/prisma' or its corresponding type declarations.

So I have an issue, my nextjs project cannot find better-auth/adapters/prisma and better-auth.

I've followed these guides:
https://www.prisma.io/docs/guides/betterauth-nextjs
https://www.better-auth.com/docs/installation

Versions of packages that I'm using are as follows:
Next.js v16.0.10
__
better-auth 1.4.9
__

prisma : 7.2.0
@prisma/client : 7.2.0
Operating System : win32
Architecture : x64
Node.js : v20.19.6
TypeScript : 5.9.3
Query Compiler : enabled
PSL : @prisma/prisma-schema-wasm 7.2.0-4.0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
Schema Engine : schema-engine-cli 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3 (at node_modules.pnpm@prisma+engines@7.2.0\node_modules@prisma\engines\schema-engine-windows.exe)
Default Engines Hash : 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
Studio : 0.9.0


tsconfig.json

{
"compilerOptions": {
"target": "ES2023",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"incremental": true,
"module": "ESNext",
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
]
},
"include": [
"next-env.d.ts",
".next/types//*.ts",
".next/dev/types/
/.ts",
"**/
.mts",
"/*.ts",
"
/*.tsx"
],
"exclude": [
"node_modules"
]
}
Learn how to use Prisma ORM in a Next.js app with Better Auth
How to use Prisma ORM and Prisma Postgres with Better Auth and Next...
Learn how to configure Better Auth in your project.
Installation | Better Auth
Was this page helpful?