Chen
Chen5mo ago

Client `tsc` checking server code

I have a trpc server and vite/react client set up in a pnpm monorepo. The VSCode type checking is behaving fine, but running tsc to build the Vite app starts trying to apply the client's typescript rules to the server's code. Is this a known issue, and is there a decent solution to this? If not, I can provide a simple repo which reproduces the issue.
2 Replies
Chen
Chen5mo ago
I realise this isn’t directly a trpc problem but I’m hoping someone here has run into the same thing
Chen
Chen5mo ago
See this repo for an example of the issue I'm having: https://github.com/bchilcott/trpc-ts-problem
GitHub
GitHub - bchilcott/trpc-ts-problem
Contribute to bchilcott/trpc-ts-problem development by creating an account on GitHub.