microsoft / microsoft/TypeScript

`tsc --watch` doesn't recompile on file change

Open
#63,867 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs More Info
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.