-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng build --prod --watch compiles app state before the save #5137
Comments
After solving issue #5138 this problem went away. My guess is I somehow had multiple versions of angular-cli installed that were conflicting with each other. |
Correction, I'm still experiencing this issue on another computer after following the same steps I used to solve #5138 . I found that if I make a change to the index file, I can see the change take immediate effect in the |
Same here, |
Can confirm this also happens on |
Possibly related, but I can't see the issue fixed by it: #4009 |
I investigated a bit more and this doesn't seem to happen on all changes. I can reproduce when changing a component template, but not when changing the component itself (changes are immediately reflected in this case). So this seems related to the child compilers we use. |
FYI - I might have had this same issue. Apparently I had another ng build process running in the background. when I killed that the issue got resolved. |
@filipesilva @bklik I am also experiencing this issue... I noticed on @bklik's version output that they are running Unfortunately, I can only installed "approved" versions of node at work 👎 so I cannot update my node at this time. |
OS: Ubuntu 16.04. |
I noticed the same / similar problem myself. What I observed
You can reproduce this problem in the following repo (generated using the cli): christianacca/rxjs-err-async-pipe@c9909e4 Try changing My environment
|
I am seeing the same problem. Change are always one save behind. The behavior is only experienced when using --aot or --prod. Other developers with the same project get the same problem. I see the same problem with the repo that @christianacca linked above. My environment
|
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. |
Description:
While running a build watch with the '--prod' or '--aot' options, the results to dist seem to be one save behind. Meaning, if I make a change and save, the change is detected and the project builds, however the results are the state of the app before the change. If I make another change, like adding a new line to a file, the change is detected and the project built, with the results of the previous save but not capturing the new lines added.
Note: This issue goes away if the '--prod' or '--aot' options are not used.
OS?
Windows 10
Versions.
@angular/cli: 1.0.0-beta.30
node: 6.9.5
os: win32 x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/cli: 1.0.0-beta.30
@angular/compiler-cli: 2.4.8
Repro steps.
ng new test-app
ng build --prod --watch
or
ng build --aot --watch
or
ng build --prod --aot --watch
The log given by the failure.
None
The text was updated successfully, but these errors were encountered: