[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


0 Replies