Module '"@prisma/client"' has no exported member 'PrismaClient'.?

Установил Prisma на Next JS

pnpm i prisma @prisma/client 
import { PrismaClient } from '@prisma/client'; 

const prismaClientSingleton = () => { 
return new PrismaClient(); 
}; 

declare global { 
var prismaGlobal: undefined | ReturnType<typeof prismaClientSingleton>; 
} 

export const prisma = globalThis.prismaGlobal ?? prismaClientSingleton(); 

if (process.env.NODE_ENV !== 'production') globalThis.prismaGlobal = prisma;

Ответы (0 шт):