Viszy A
Viszy A16mo ago

Getting this error: Cannot read properties of undefined (reading 'upsert')

I'm using the T3 Stack. And I'm fairly new to tRPC so I am not sure what this error is caused. I'm getting data from chess.com and monkey type using their APIs, the request is all good, and I'm trying to save the data in a prisma db. In my tRPC function, I'm using one private procedure with a mutation that has 2 upserts that each change 2 different models in prisma. When I try to run it i get this error: Cannot read properties of undefined (reading 'upsert') Also to note, before adding the second upsert, it was working fine. Is the problem using 2 upserts?
1 Reply
Nick
Nick16mo ago
Can you share any of the related code?