Neon adapter (driverAdapters) gives error on PrismaClient init
Hey there. I've wanted to run inngest events that trigger some prisma stuff, but I'm getting the error
So I've decided to take a look at the driver adapters. After following the setup page to update my existing code, I have the following prisma client file :
Unfortunately, it seems like there's an error when initializing the PrismaClient:
I haven't been able to find much clues about what's going on. Any idea?
3 Replies
Hello @Yozamu 👋
Is this happening on latest version of Prisma - v5.22.0?
Is your repository open source? If yes, can you share with me so that I can try to reproduce this error?
Hi, thanks for your answer. It seems like, between the moment I've added prisma to my project, and needed the neon-adapter, there has indeed been a minor version change that changed the method name and created the mismatch!
By upgrading prisma version to the latest, it solved the issue
I am glad to hear that upgrading to the latest version of Prisma resolved the issue for you 🙌