microsoft / microsoft/TypeScript
`tsc --watch` doesn't recompile on file change
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den gemeldeten Monorepo-Fall auf eine minimale Reproduktion zu reduzieren, und führe anschließend tsc --build --watch mit TypeScript 6.0.3 und 7.0.2 aus, während du eine Datei im Paket änderst. Die Arbeit ist abgeschlossen, wenn der Watch-Build von 7.0.2 die Änderung zuverlässig erkennt und neu baut.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js, typescript
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100