Type Errors when importing AppRouter from npm workspace TRPC server

I'm setting up a mono repo using npm workspaces where I have an api directory which has a trpc directory. When I import the AppRouter from my package, I get cryptic type error I can not understand, BUT when I copy the files directly into my next project, the type error goes away. So I think I'm exporting the correct AppRouter, but typescript is confused for some reason. Any ideas what might be going on?
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mac.dev
mac.dev2y ago
was there a solution to this ?
Want results from more Discord servers?
Add your server