TS error regarding inferred type of 'appRouter'
Hey there,
I've been running into this issue with my turborepo. I have an api (hono) backend and a nextjs frontend and both rely on tRPC in order to function/make calls. I believe this is an issue with trpc/server and zod? But honestly everything I find online isn't quite right.
I have a pretty standard setup that I think I have used before with no issues. I use Zod in multiple places in my repo but I make sure that they are all the same version. I'm not 100% sure of which code to show so please do ask for anything you need to see in the comments.
- Node 22
- Bun
- Turborepo
- @trpc/server 11.5.1
- zod 4.1.5
0 Replies