T
tRPC

AppRouter type any?

AppRouter type any?

TThiccBoiCommander12/8/2022
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.
Mmsalsbery12/8/2022
Your trpcClient should be typed though, yes?
TThiccBoiCommander12/8/2022
I thought it should but it's any type after I import it
TThiccBoiCommander12/8/2022
UUUnknown User12/8/2022
Message Not Public
Sign In & Join Server To View

Looking for more? Join the community!

T
tRPC

AppRouter type any?

Join Server