Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy build error Prisma' has no exported member 'UserSelect' #191

Open
julimancan opened this issue Oct 11, 2023 · 2 comments
Open

Deploy build error Prisma' has no exported member 'UserSelect' #191

julimancan opened this issue Oct 11, 2023 · 2 comments

Comments

@julimancan
Copy link

When deploying to vercel getting build error:
image

this is my package.json:
"@prisma/client": "5.1.1",
"prisma": "5.1.1",
"zod": "3.21.1",
"zod-prisma-types": "^2.7.7",

I just have a user model and I don't get any errors in localhost when I run npm run build or dev. Any idea what could be going wrong?

@chrishoermann
Copy link
Owner

@julimancan have you been able to fix this issue? if not can you provide your (simple) schema? in the screenshot it looks like there is a newer version of prisma client installed than you use in your package.json..

@julimancan
Copy link
Author

julimancan commented Oct 14, 2023

Yes I was going through the different issues and saw some incompatibility issues which led me to try different versions of prisma but I keep getting the same errors. `model User {
id String @id @unique
firstName String
lastName String
hasImage Boolean @default(false)
image String?
address1 String?
address2 String?
city String?
stateProvince String?
postalCode String?
country String?
email String @unique
phone String?
businessName String?
instagramHandle String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
role Role @default(VENDOR)
}

enum Role {
ADMIN
VENDOR
}`
and yes this is my schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants