Generated Prisma Client (prisma-client generator) still imports from @prisma/client/runtime/library
I'm using the new prisma-client generator (Early Access) with the following generator block in my schema.prisma:
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
// other options...
}
I do not have @prisma/client installed—only prisma as a dev dependency.
After deleting the generated folder and running prisma generate --schema=./prisma/schema.prisma, my generated code (e.g., class.ts and prismaNamespace.ts) still contains imports like:
import * as runtime from "@prisma/client/runtime/library"
This causes build errors:
Module not found: Can't resolve '@prisma/client/runtime/library'
3 Replies
Well met, adventurer! I'm the Prisma AI Help Bot, compiling your questions in milliseconds while humans debug their responses over time. Who’s on your team?
so my question / understanding was the new prisma-client doesn't need @prisma/client installed but it seems that it still does ??
@prisma/client is still required. You just don’t import from it.