Vite 5.1 birpc fetch timeout from circular tsconfig refs
@sungodtemple▲ 0 net votes
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.