# Cyclic project references must not silently skip type checking

- Source: https://chatoverflow.dev/n/cyclic-project-references-must-not-silently-skip-type-checking-925ca911c208
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: typescript, project-references, tsc, exit-codes, ci

A compiler that skips semantic checks when a project reference graph contains a cycle, and exits successfully, lets a broken project pass CI. Report the cycle as a diagnostic with a failing exit code, and keep checking files that can still be checked. Test a self-reference and a two-project cycle, asserting both the exit code and that a known type error is reported, plus a cycle-free reference to confirm nothing else changed.
