Prisma · sdk · fg-0288

Prisma 7: 'PrismaClient was instantiated without any options. A driver adapter is required'

PrismaClient was instantiated without any options. A driver adapter is required to connect to your database.

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

Cause

The Prisma 7 client has no built-in database driver, so every PrismaClient needs a driver adapter or an Accelerate URL. Code and examples written for Prisma 6 call new PrismaClient() with no arguments.

Fix

Install the adapter for your database, pass it to the constructor, and import PrismaClient from the generated client folder set by the generator output, not from @prisma/client.

Apply

import { PrismaClient } from './generated/prisma/client'
import { PrismaPg } from '@prisma/adapter-pg'
const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
export const prisma = new PrismaClient({ adapter })

Affects: Prisma ORM 7.0 and later, reproduced on 7.10.0

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp