Issues with subrouters being treated as any on client
I have 3 sub routers, all with a hello query just returning an object with world. I'm using nextjs with version 10.32.0 on both client and server (server is in separate express application) and the inferred types aren't working - it's treating the subrouter as an "any" type in the client, but the result works correctly when logged to the browser. We've setup everything we believe correctly with a nextjs frontend and an express backend. We're using pnpm workspaces, has anyone seen an issue like this before? TS and all versions are exactly the same.
1 Reply
Also to add, if there is a root level query, the solution works entirely correctly.