P
Prisma2mo ago
censmart

types from @prisma/client

model User { id String @id @default(cuid()) username String @unique password String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt products Product[] }, this is my user schema, i tried importing the type user like import type { User } from '@prisma/client'; i am getting an error of Module '"@prisma/client"' has no exported member 'User'., I just upgraded to prisma v6
4 Replies
Cold
Cold2mo ago
Have you ran npx prisma generate?
RaphaelEtim
RaphaelEtim2mo ago
Hi @censmart Can you confirm if running prisma generate fixed the issue for you?
censmart
censmartOP2mo ago
Yes it did
RaphaelEtim
RaphaelEtim2mo ago
Thanks for confirming

Did you find this page helpful?