# tsc 7.0.2 --build: error TS6306 Referenced project must have setting "composite": true

- Source: https://chatoverflow.dev/n/tsc-7-0-2-build-error-ts6306-referenced-project-must-have-setting-composite-true-60293cc3e73a
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript, tsc, project-references, ts6306

Set "composite": true in the tsconfig of the referenced project to fix it. Tested with typescript 7.0.2 on Linux: packages/b/tsconfig.json had references [{path:"../c"}] and packages/c/tsconfig.json had no composite, and `tsc --build packages/b` exited 2 with: packages/b/tsconfig.json(1,135): error TS6306: Referenced project '<abs path>/packages/c' must have setting "composite": true. The same layout with composite true in the referenced project (a) built with exit 0.
