What's this error

it was working till yesterday then i added stateDistrict to address model then i started to get this error. Which enumTypes are undefined?
Solution:
Go to vercel, remove the cache and redeploy
A
albatroz368d ago
A
albatroz368d ago
The webhook api
enum Role {
BASIC
ADMIN
EDITOR
}

enum SubscribePlanEnum {
BASIC
PIECE
GRADING
ALERT
}

model User {
id String @id @default(uuid())
name String?
gstNumber String
phoneNumber String @unique
role Role @default(BASIC)
address Address?
subscribedPlans SubscribePlan[]
createAt DateTime @default(now())
}

model SubscribePlan {
id String @id @default(uuid())
enabledPlan SubscribePlanEnum @default(BASIC)

User User @relation(fields: [userId], references: [id])
userId String

@@unique([id, userId])
@@index([id])
}

model Address {
addressId String @id @default(uuid())
latitude Float
longitude Float
stateDistrict String
user User @relation(fields: [userId], references: [id])
userId String @unique

@@unique([latitude, longitude])
@@index([userId])
}
enum Role {
BASIC
ADMIN
EDITOR
}

enum SubscribePlanEnum {
BASIC
PIECE
GRADING
ALERT
}

model User {
id String @id @default(uuid())
name String?
gstNumber String
phoneNumber String @unique
role Role @default(BASIC)
address Address?
subscribedPlans SubscribePlan[]
createAt DateTime @default(now())
}

model SubscribePlan {
id String @id @default(uuid())
enabledPlan SubscribePlanEnum @default(BASIC)

User User @relation(fields: [userId], references: [id])
userId String

@@unique([id, userId])
@@index([id])
}

model Address {
addressId String @id @default(uuid())
latitude Float
longitude Float
stateDistrict String
user User @relation(fields: [userId], references: [id])
userId String @unique

@@unique([latitude, longitude])
@@index([userId])
}
P
Panda368d ago
Add a default value to it or make it nullable
A
albatroz368d ago
which field? Got a new error
A
albatroz368d ago
Solution
A
albatroz368d ago
Go to vercel, remove the cache and redeploy
Want results from more Discord servers?
Add your server
More Posts
Prisma find many undefinedHello, In my other projet when i do `prisma.resource.findMany({select: ...})` the type is `{id: strESLint to force @types in dev-dependenciesWe recently had an outage coz someone installed the @types/[package-name] in dependencies, but neverUpdating existing T3 with Supabase Auth from Next AuthBackground: - Launched a T3 app with Next Auth. - Currently got 3000 users. - Launching an app vetRPC + AppRouter without reactQueryhi everyone how can i host trpc on next.js and use trpc on server components without using react queMutate instantly returning success instead of isLoadingI have been working on this endpoint that uploads files do Google Drive. It can upload one or multipNext 13.4 problem with loading state after content is visible & hydration problemHey, I have a small app with Next 13.4 with Shadcn Ui 😍 it's really really good. But I'm also usingis there a way to change/refresh token when data in db changes such as role?Hi, I had a project using NextAuth as my provider and the JWT strategy. When I use the database straRefresh a single React Server ComponetnsI have a dashboard where I want a certain piece of data to update every 10 seconds, what's the best Axios Singleton good or bad idea and how to implement?Hey ppl, I'm asking myself a question. Is it a good idea to have a single instance of axios for an aNext-Auth in server rendered components aka appDir pageshow do we deal with next-auth in appDir? I am genuinely curious, as I am trying to migrate from pageAny Clerk gurus in here? Following the Next.js 13 getting started guide renders blank screenFollowing the getting started with nextjs guide for clerk renders a completely blank screen. I've foNested TRPC CallsHi, would anyone be able to assist please? Hope it's ok to post stack overflow link, just figured coCan I use tRPC with Next.Js App RouterI want to know if there's a way I can use tRPC with Next.Js app router. I mean, I don't want to use Suggestions for React Native offline-first DB with syncingHi all, basically I’m trying to get Firebase functionality without using Firebase. because of Their Querying external api in trpc router not workingHi guys! So I'm trying to query an api endpoint that I created through a separate node server insideinfer from trpc callsIt appears trpc clients dont infer the return type, and I have to set it in useQuery like this.. Using GithubAPI + NextAuth Github Provider to access a User's repo information.I am building an app where will allow users to login with Github and view their Github accounts dataHow can i use a random number without getting a hydration error?Im trying to pass in a random number, but it's giving me a hydration error. How could i do somethingUploadthing IssueI'm working with UploadThing and am running into some issues: The terminal displays the message: [React Query For Asynchronous Data within Sanity StudioI'm using the sanity studio to manage my Sanity CMS. I was able to configure a custom component that