question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Property 'Prisma' does not exist on type 'Adapters'

See original GitHub issue

Describe the bug Trying to use Prisma Adapter in ts project throws error: Property 'Prisma' does not exist on type 'Adapters'

Steps to reproduce

  1. Import Adapters from next-auth/adapters
  2. 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. Screenshot 2021-04-02 at 5 30 05 PM

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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
s-kriscommented, Apr 2, 2021

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.

1reaction
zackdotcomputercommented, Apr 2, 2021

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found