tRPCttRPC
Powered by
Viszy AV
tRPC•3y ago•
2 replies
Viszy A

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?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cannot read properties of undefined (reading 'input')
ManthanMManthan / ❓-help
3y ago
Cannot read properties of undefined (reading 'trpc')
fisherFfisher / ❓-help
3y ago
Cannot read properties of undefined (reading 'createTRPCReact')
IndustrialIIndustrial / ❓-help
3y ago