Daniel
Daniel
PPrisma
Created by Daniel on 6/17/2024 in #help-and-questions
Cannot read properties of undefined (reading 'kind')
10 replies
PPrisma
Created by Daniel on 6/17/2024 in #help-and-questions
Cannot read properties of undefined (reading 'kind')
Kind comes from library.js:
...
function Ka(e){
return e.kind==="list"?`${Ka(e.elementType)
} ^
...
...
function Ka(e){
return e.kind==="list"?`${Ka(e.elementType)
} ^
...
10 replies
PPrisma
Created by Daniel on 6/17/2024 in #help-and-questions
Cannot read properties of undefined (reading 'kind')
No, I do not! Kind is nowhere to be found in the whole project (excluding node_modules). And yes, i am getting this error while invoking a query:
this.prisma.chatActivity.create({
...
});
this.prisma.chatActivity.create({
...
});
10 replies
PPrisma
Created by Daniel on 6/17/2024 in #help-and-questions
Cannot read properties of undefined (reading 'kind')
Anyone any ideas? 😟
10 replies
PPrisma
Created by Daniel on 6/17/2024 in #help-and-questions
Cannot read properties of undefined (reading 'kind')
If i remove the activityContent field from the db action, it works fine. Once i add it, the error occurs
10 replies
PPrisma
Created by Daniel on 6/17/2024 in #help-and-questions
Cannot read properties of undefined (reading 'kind')
model ChatActivity {
id String @id @default(uuid()) @db.Uuid
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

chat Chat @relation("ChatActivity", fields: [chatId], references: [id])
chatId String @db.Uuid

executor User @relation("UserChatActivity", fields: [executorId], references: [id])
executorId String @db.Uuid

readBy User[] @relation("ReadChatActivity")

answerTo ChatActivity? @relation("ChatActivityAnswer", fields: [answerToId], references: [id])
answerToId String? @db.Uuid

answeredBy ChatActivity[] @relation("ChatActivityAnswer")

type ChatActivityType
activityContent Json

starred Boolean @default(false)

@@map("activities")
}
model ChatActivity {
id String @id @default(uuid()) @db.Uuid
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

chat Chat @relation("ChatActivity", fields: [chatId], references: [id])
chatId String @db.Uuid

executor User @relation("UserChatActivity", fields: [executorId], references: [id])
executorId String @db.Uuid

readBy User[] @relation("ReadChatActivity")

answerTo ChatActivity? @relation("ChatActivityAnswer", fields: [answerToId], references: [id])
answerToId String? @db.Uuid

answeredBy ChatActivity[] @relation("ChatActivityAnswer")

type ChatActivityType
activityContent Json

starred Boolean @default(false)

@@map("activities")
}
10 replies