RaineP
RaineP3y 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 salsbery3y ago
Your trpcClient should be typed though, yes?
RaineP
RainePOP3y ago
I thought it should but it's any type after I import it
RaineP
RainePOP3y ago
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View