-
Notifications
You must be signed in to change notification settings - Fork 12k
TypeScript changes not deployed, even though ng serve detects the changes #6744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have this exact problem, too. HTML gets changed, but TS does not. I
I have been experiencing this problem intermittently for a while now (even back in version 2). |
I'm not sure, but this seems to happen after very small changes (1-2 lines of code). Larger changes seem to get picked up. Also, my terminal shows that the CLI is recompiling after every change. |
Sometimes happens to me too but only if I update an interface definition. All other changes are fine. |
I think this only happens on my Windows machine. Seems to be okay on MacOS. Can anyone confirm it's the same for them? |
@jongunter Same here. Works fine on MacOS running @angular/cli version 1.0, but I haven't tried 1.1.2 on my Mac yet. |
@jongunter Since most of my changes are small, I hadn't given it much thought, but you're definitely on to something. From a newly created app, I can change the title property in app.component.ts by adding several characters to the string, and the change is not recognized. However, if I add several hundred characters to the title property, it works as expected. |
Same here, all changes gets registered but I have to recompile two/three times to get the changes "live" in the browser. TS files only requires two compiles but HTML sometimes need three, and SCSS files only requires one compilation. IDE: Visual Studio Code Version 1.13.1 dep: devDep: Running following command: |
@krilllind This seems to have solved the problem for me; thanks so much for the tip! I'm going to keep an eye on it for a bit to be sure, but I'll likely close the issue soon. For others who are using IntelliJ/WebStorm, here's how to disable safe write, as @krillind suggested. Thanks again! |
Heya, the main issue for these problems is #1610. As @krilllind mentioned, disabling |
Sorry but I always read "disable this option in [your ide]". I use notepad++. So where can I find this option if there is no IDE? It worked fine with a2 and a2univeral. Why do I need an IDE now hack some code? @filipesilva |
Same issue here with Angular CLI 7.3.9 and Node.js 12.3.0 on Windows 10 and Ubuntu 19.04. |
Me too facing the same problem with windows 10 same cli version and node 10.16 |
On my side, this issue was fixed after upgrading to Angular 8.1.0 👍 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.1.2
node: 6.10.0
os: win32 x64
@angular/animations: 4.2.3
@angular/common: 4.2.3
@angular/compiler: 4.2.3
@angular/core: 4.2.3
@angular/flex-layout: 2.0.0-beta.8
@angular/forms: 4.2.3
@angular/http: 4.2.3
@angular/material: 2.0.0-beta.7
@angular/platform-browser: 4.2.3
@angular/platform-browser-dynamic: 4.2.3
@angular/router: 4.2.3
@angular/cli: 1.1.2
@angular/compiler-cli: 4.2.3
Repro steps.
No exceptions are thrown
Mention any other details that might be useful.
This was first reported against v1.0 (#5600) and closed as presumably fixed, but the issue persists.
IDE: IntelliJ
OS: Windows 10
The text was updated successfully, but these errors were encountered: