tRPCttRPC
Powered by
TimT
tRPC•3y ago•
2 replies
Tim

Expression produces a union type that is too complex to represent

Hi! I have started to encounter the above on error on pretty simple react components using trpc v10 useQuery hooks + zod for validation. Pretty standard type inference all the way.

Arbitrary blocks of jsx are marked with that error.

I am looking for pointers on how to debug this. Any help is appreciated!

Tim.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Type too complex to infer?
hashwarpHhashwarp / ❓-help
2y ago
Complex type inference on router outputs?
ianIian / ❓-help
2y ago
Union context type to allow incremental upgrade to App router
gklineGgkline / ❓-help
2y ago
what's this union type doing(Zod)?
K1|llerKK1|ller / ❓-help
3y ago