Prisma · sdk · fg-0288

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

If you see PrismaClient was instantiated without any options. A driver adapter is required to connect to your database, the cause and the fix for Prisma are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
PrismaClient was instantiated without any options. A driver adapter is required to connect to your database.PrismaClientConstructorValidationError: Using engine type "client" requires either "adapter" or "accelerateUrl" to be provided to PrismaClient constructor.TypeError: Cannot read properties of undefined (reading '__internal')SyntaxError: The requested module '@prisma/client' does not provide an export named 'PrismaClient'
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 })
Affected
Prisma ORM 7.0 and later, reproduced on 7.10.0
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun