Skip to content

Ng Serve stops responding to file changes when editing ts/html files using Visual Studio 2022 (17.8.0) #26437

Closed
@MichielNL83

Description

@MichielNL83

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

Angular 16

Description

Running Angular application using ng serve

When editing TS or HTML files using Visual Studio (v17.8.0) and saving,
the first change gets picked up and triggers a rebuild + reloading client(s).

All changes after that do not trigger a change.

Opening the same file in notepad++ and saving, does trigger a change.
Changes made in notepad++ do show in visual studio and vice versa

Minimal Reproduction

  • ng serve application
  • open component.html file and edit content (using visual studio)
  • save file
  • cli rebuilds application and browser refreshes
  • edit content of same component.html file and save file
  • cli does not respond to changes

Exception or Error

No response

Your Environment

Angular CLI: 17.0.2
Node: 20.9.0
Package Manager: npm 10.1.0
OS: win32 x64

Angular: 17.0.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1700.2
@angular-devkit/build-angular     17.0.2
@angular-devkit/core              17.0.2
@angular-devkit/schematics        17.0.2
@angular/cdk                      17.0.0
@angular/cli                      17.0.2
@angular/flex-layout              15.0.0-beta.42
@angular/material                 17.0.0
@angular/material-luxon-adapter   17.0.0
@schematics/angular               17.0.2
rxjs                              7.8.1
typescript                        5.2.2
zone.js                           0.14.2

Anything else relevant?

Windows 11 Enterprise 22H2
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current - Version 17.8.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions