T
tRPC

❓-help

Client `tsc` checking server code

SScythern1/17/2024
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. I realise this isn’t directly a trpc problem but I’m hoping someone here has run into the same thing
SScythern1/18/2024
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.

Looking for more? Join the community!