angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

TypeScript changes not deployed, even though ng serve detects the changes

Open etovian opened this issue 9 years ago • 9 comments

Bug Report or Feature Request (mark with an x)

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

Versions.

Repro steps.

  1. Make a change to a TypeScript file
  2. Observe that webpack recompiles
  3. Observe that the browser refreshes
  4. Observe that the TypeScript changes were not deployed to the browser
  5. Make a change to an html template file
  6. Observe that the html changes have been deployed to the browser, but any TypeScript changes have not

The log given by the failure.

No exceptions are thrown

Mention any other details that might be useful.

IDE: IntelliJ OS: Windows 10

etovian avatar Mar 23 '17 20:03 etovian

It's probably also pertinent that I'm running ng serve with the --proxy-config switch. Here's my config file:

{ "/api": { "target": "http://localhost:8080", "secure": false } }

etovian avatar Mar 23 '17 20:03 etovian

But the problem persists, even if I run ng serve without the --proxy-config switch. In either case, if I halt ng serve and run it again, the latest TypeScript changes are deployed to the browser after it refreshes.

etovian avatar Mar 23 '17 20:03 etovian

Which version of the cli are you using?

trevor-hackett avatar Mar 23 '17 20:03 trevor-hackett

Sorry, I thought I included ng --version output in the ticket:

@angular/cli: 1.0.0-rc.4 node: 6.10.0 os: win32 x64 @angular/common: 2.4.10 @angular/compiler: 2.4.10 @angular/core: 2.4.10 @angular/forms: 2.4.10 @angular/http: 2.4.10 @angular/material: 2.0.0-beta.2 @angular/platform-browser: 2.4.10 @angular/platform-browser-dynamic: 2.4.10 @angular/router: 3.4.10 @angular/cli: 1.0.0-rc.4 @angular/compiler-cli: 2.4.10

etovian avatar Mar 23 '17 20:03 etovian

This PR should hopefully address the issue: https://github.com/angular/angular-cli/pull/5492

clydin avatar Mar 23 '17 21:03 clydin

@etovian are you saying that neither TS or HTML changes are reflected in the browser? I can't reproduce that, I see changes appearing in the browser. Do you always get this?

filipesilva avatar Mar 24 '17 00:03 filipesilva

This should have been fixed by #5492.

hansl avatar Mar 24 '17 00:03 hansl

@filipesilva HTML was working fine. I was just demonstrating that the problem was limited to TypeScript. @hansl What version will the #5492 fix release in? Thanks!

etovian avatar Mar 24 '17 01:03 etovian

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.