Can´t generate prisma global next.js 15.5.6 (Next.js-supabase-prisma)
Hi everyone,
I am trying to start up a new app with the following stack:
Next.js: 15.5.6
Database: Supabase
ORM: Prisma Client 6.18.0
#Explanation of setup
I have my own project (not following the full “create-next-app” guide). I have been following the Prisma Next.js guide:
https://www.prisma.io/docs/guides/nextjs
In this guide it doesn´t say to run
#Files
Prisma.config
Schema.prisma
I get the following error:
I have once cleared my DB, uninstalled prisma, deleted everything and set up everything again... But get the same error.
I would like some guidance or more question to help me figure things out..
Thanks in advanded
I am trying to start up a new app with the following stack:
Next.js: 15.5.6
Database: Supabase
ORM: Prisma Client 6.18.0
#Explanation of setup
I have my own project (not following the full “create-next-app” guide). I have been following the Prisma Next.js guide:
https://www.prisma.io/docs/guides/nextjs
In this guide it doesn´t say to run
#Files
Prisma.config
Schema.prisma
What I want
I wan´t to be able to import prismaclient as instructed and be able to have a global instance of it. But when I do this:I get the following error:
I have once cleared my DB, uninstalled prisma, deleted everything and set up everything again... But get the same error.
I would like some guidance or more question to help me figure things out..
Thanks in advanded
Learn how to use Prisma ORM in a Next.js app and deploy it to Vercel

Solution
Solution
In the prisma.schema file, changed providerfrom: "prisma-client"
to: "prisma-client-js"
This is my Prisma files:
schema.prisma
prisma.config.ts
/lib/prisma.ts