Module '"prisma/prisma-client"' has no exported member 'PrismaClient'.
I'm suddenly getting this error from typescript and I don't know what's changed. I'm also no longer getting autocomplete in VSCode. I've restarted my computer and regenerated the client a few times. I'm at a loss on how to troubleshoot this. Studio works fine. My seed file works fine.
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient({
omit:{
user: {
passwordHash: true
}
}
})
export default prisma
1 Reply
Solution
It's now fixed its self. Which is kinda worrisome.