Property 'Prisma' does not exist on type 'Adapters'
See original GitHub issueDescribe the bug
Trying to use Prisma Adapter in ts project throws error: Property 'Prisma' does not exist on type 'Adapters'
Steps to reproduce
- Import Adapters from next-auth/adapters
- Try to set Prisma with
adapter: Adapters.Prisma.Adapter({ prisma })
Expected behavior No type errors
Screenshots or error logs
I checked the adapters.d.ts
only to find no Prisma property in the Adapters interface.
Feedback Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
- Found the documentation helpful
- Found documentation but was incomplete
- [x ] Could not find relevant documentation
- Found the example project helpful
- Did not find the example project helpful
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Nextjs build: Property does not exist on type 'PrismaClient
I'm running a NextJS app (TypeScript) with Prisma on Netlify. I recently added a new model called ...
Read more >Upgrade Guide (v4) - NextAuth.js
If you use the built-in TypeORM or Prisma adapters, these have been removed from the core next-auth package. Thankfully the migration is easy; ......
Read more >How to Build a Fullstack App with Next.js, Prisma, and ... - Vercel
Prisma is a next-generation ORM that can be used to access a database in Node.js and TypeScript applications. In this guide, you'll learn...
Read more >Build a Full Stack App with Next.js, Tailwind, tRPC and Prisma ...
Property 'setItemName' does not exist on type '[string, Dispatch>]'; trpc.useMutation should mention "groceries." in its reserved word. Preview:.
Read more >Prisma Client
Prisma Client is an auto-generated, type-safe query builder generated based on the models and attributes of your Prisma schema.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thats it. I completely forgot that next-auth’s types are from the
DefinitelyTyped
repo. Sorry about this, it’s fixed now. I updated @types/next-auth to latest version.Oh I just realized my types are coming from
"@types/next-auth": "3.13.0",
- are you on the latest version for that as well?