© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Cannot find module 'better-auth/adapters/prisma' or its corresponding type declarations. - Better Auth
BA
Better Auth
•
4mo ago
Diodox
Cannot find module 'better-auth/adapters/prisma' or its corresponding type declarations.
Next.js
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
"
]
}
How to use Prisma ORM and Prisma Postgres with Better Auth and Next...
Learn how to use Prisma ORM in a Next
.js app with Better Auth
Installation | Better Auth
Learn how to configure Better Auth in your project
.
Similar Threads
Similar Threads
Prisma + better-auth: schema type issue
BA
Better Auth / help
12mo ago
Cannot find module
BA
Better Auth / help
3mo ago
[Better Auth]: Couldn't read your auth config. Error: Cannot find module '$app/paths'
BA
Better Auth / help
12mo ago
Better-auth + neon + prisma
BA
Better Auth / help
8mo ago