Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
TS does not recompile correctly when using a combination of project references, wildcard re-exports and watch mode #35468
The simplest example I could come up with is this (full example available as github repo):
Setup: Two projects,
I start tsc in watch mode. Then I add a field to the interface type, which should cause a type error in the
Search Terms: project references, reexports
Clone the repo, install tsc (I tried with 3.8.0-dev.20191203), start tsc in watch mode (
Expected behavior: tsc should report a type error in the src/main/index.ts file, where the Session type is used.
Actual behavior: tsc remains quiet and does not report any errors.