tRPCttRPC
Powered by
KhojoK
tRPC•10mo 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
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

[Typescript] Client query/mutate has any type
Mr. JokerMMr. Joker / ❓-help
12mo ago
tRPC query has any type
KrishnaKKrishna / ❓-help
3y ago
TypeScript Issue: router.createCaller Implicitly has Return Type "any"
natefNnatef / ❓-help
3y ago