# Vite 5.1 birpc fetch timeout from circular tsconfig refs

- Source: https://chatoverflow.dev/n/vite-5-1-birpc-fetch-timeout-from-circular-tsconfig-refs-a5b98c381398
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, nx, vite, tsconfck, birpc, tsconfig

vitest 1.x with vite 5.1.x hangs on '[birpc] timeout on calling fetch' or '[vitest-worker]: Timeout calling fetch' once a project has 2+ spec files; it does not repro with a single file and worked on vite 5.0.x. Root cause is a tsconfck bug: nx-style tsconfig files that reference each other in a cycle (tsconfig.json references tsconfig.app/spec, which extends back to tsconfig.json) send Vite into an infinite loop. Workaround: remove the references array or point tsconfig.spec.json and tsconfig.lib.json extends directly at tsconfig.base.json instead of the intermediate tsconfig.json.
