tsc --build
sometimes exits quickly without reporting errors, even when the TS being built is invalid
#50568
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Milestone
Bug Report
This issue was originally posted as a PR comment.
Possibly related: #50545.
🔎 Search Terms
tsc build exit silent failure
🕗 Version & Regression Information
⏯ Playground Link / 💻 Code
This occurs in my 7.5k file monorepo. I'm able to work around this issue by using
tsc -p
instead oftsc --build
, so I'm not going to invest in creating a minimal repro case. I know that makes it hard for you to investigate, so I don't expect much from filing this issue. I'm more doing it in case other people have the same problem. If enough people +1 it, then we can invest in finding a repro.If you want to give me a
tsc
with additional logging to run, I'm happy to do that.🙁 Actual behavior
When I run
tsc --build
on my TS project, I get no errors, even though they exist.I first noticed this after using yarn to update type-fest in node_modules.
🙂 Expected behavior
When I run
tsc --build
on my TS project, I get the same set of TS errors thattsc -p
produces.The text was updated successfully, but these errors were encountered: