-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Referenced projects must have the new composite setting enabled" does not hold true #60465
Comments
When the docs say
what they mean is that if project A references project B, the latter must have ΒΉ) In your case ( |
I see. So solution-style references don't require |
Yes, at least that's been my understanding. |
I found that the TypeScript 5.7 RC release blog has confirmed this behavior:
|
π Search Terms
composite, project references, solution-style tsconfig
π Version & Regression Information
β― Playground Link
https://vite.new/react-ts
π» Code
The above link is a project created from the vite react-ts template (https://vite.new/react-ts).
It uses project references in
tsconfig.json
, but nocomposite: true
specified in bothtsconfig.app.json
andtsconfig.node.json
.On the other hand, the TypeScript handbook says:
π Actual behavior
The project builds (
npm run build
) successfully withoutcomposite: true
.π Expected behavior
If I understand correctly, the documentation means I have to specify
composite: true
when usingreferences
. I'd expect an error or warning if I didn't follow the guide.Additional information about the issue
I'm curious whether it's a bug or a feature.
If it's a bug, what's the expected behavior?
If it's a feature, I'd like to see the documentation updated accordingly.
The text was updated successfully, but these errors were encountered: