RaineP
RaineP2y ago

AppRouter type any?

I am trying to use trpc in a Turbo repo and when I export the AppRouter on the server side it is the correct type but when it is imported to the client side it infers type any. The AppRouter is being import from another app in my pnpm workspace.
4 Replies
mark salsbery
mark salsbery2y ago
Your trpcClient should be typed though, yes?
RaineP
RaineP2y ago
I thought it should but it's any type after I import it
RaineP
RaineP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View