Check the generated output variable in the schema.prisma file and the location from where u are importing prisma client. In my case I located where the edge.d.ts file was and it was in the src/generated/prisma .
import { PrismaClient } from '../src/generated/prisma/edge'
generator client {
provider = "prisma-client-js"
output = "../src/generated/prisma"
}