microsoft / microsoft/TypeScript
`tsc --watch` doesn't recompile on file change
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
Steps to reproduce
I haven't been able to reduce this to a minimal reproduction yet. I will continue trying but in the interim, any tips that would help debug the issue would be much appreciated.
I'm running tsc --build --watch from one package in a monorepo whose tsconfig.json has references to other packages within the monorepo.
Node v24.18.0
macOS 26.5.2 arm64
Behavior with typescript@6.0.3
Changing files in the package triggers a rebuild.
Behavior with typescript@7.0.2
Changing files in the package does not trigger a rebuild.
https://github.com/user-attachments/assets/b12bc159-1db5-42ab-ad5f-33e9a71d7646
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reducing the reported monorepo case to a minimal reproduction, then run tsc --build --watch with TypeScript 6.0.3 and 7.0.2 while changing a file in the package. The work is done when the 7.0.2 watch build reliably detects the change and rebuilds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100