Skip to content

Changes in d.ts files are not detected by ng serve #7638

Closed
@devoto13

Description

@devoto13

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.1
node: 8.4.0
os: darwin x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.1
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
typescript: 2.3.4

Repro steps.

  1. Clone repo https://github.com/devoto13/ng-dts-changes
  2. ng serve
  3. Open http://localhost:4200 in browser
  4. Open app.component.ts and use Refactor -> Rename to rename myConst to myConst1.
  5. Go back to browser

The log given by the failure.

Observe black screen saying Module '"*****/src/app/some"' has no exported member 'myConst1'. Although if you open some.d.ts file it actually has exported member myConst1.

Desired functionality.

Changes in d.ts files are detected and I don't have to restart ng serve after editing those.

Mention any other details that might be useful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions