Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
2 replies
Chen

Running TSC on tRPC client runs type checking on tRPC server

I have a pnpm monorepo with a Vite client and a tRPC backend (sst lambda although the specifics shouldn’t matter). Whenever I run tsc to type check the client, it follows the import to the router and proceeds to apply all of the client package’s rules to the server package.

Is this a known/common issue? I realise it’s not directly a tRPC problem but it seems like something other people should have run into.
Was this page helpful?