Skip to content

Typescript build in watch mode does not compile newly created files or renamed files  #37514

Closed
@tuan231195

Description

@tuan231195

TypeScript Version: : 3.9.0-dev.20200322, 3.8.3

Search Terms: build, project references, watch mode

Code

  • Run project in build and watch mode: tsc -b -w -v
  • Adding a new file to one of the project references. The new file is not detected by the watch process and hence not compiled
  • Rename an existing file in the project. The compilation fails with error:
    File 'filename' not found.

Expected behavior:

New files and renamed files are compiled correctly

Actual behavior:

New files were not compiled. Renamed files caused the compilation to fail

Playground Link: https://github.com/RyanCavanaugh/project-references-demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions