KhojoK
tRPC9mo ago
1 reply
Khojo

[Typescript] Client query / mutate has any type

I've broken my tRPC routes into separate modules and combined them using mergeRouters, but that seems to have broken type-safety on the client. Now, trpc is showing up as any, and I’ve lost all autocomplete and type hints for available procedures.

Things I’ve checked:
- I’ve gone through the tRPC FAQ and verified everything listed.
- Types were working fine (only for health-check procedures though) before I split and merged the routers

Setup details:
Monorepo using Turborepo
Backend: tRPC with Express
Frontend: Vite + React + TanStack Router
image.png
image.png
Was this page helpful?