the client is generated at different location in next.js by prisma -
schema.prisma file-
generator client {
provider = "prisma-client-js"
output = "../src/generated/prisma"
}
thats why while importing we need to import from this output path -
import { PrismaClient } from '@/generated/prisma' in next.js "@" is alias for src folder