Marksmith
Marksmith2y ago

React tsc starts checking server types

My tsconfig files are different on the server and client. When I run "tsc" on react client, It is trying to check AppRouter types from the server. Is it possible to make him stop checking server types on compile?
1 Reply
dersand
dersand14mo ago
GitHub
trpc causes typescript to "suck in" the entire backend, causing ver...
Problem // in your frontend / react code import type { TRPCRouter } from '../../backend/src/trpc' This causes TSC to go into ../../backend/src/trpc TSC will then check anything imported by ...