-
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
rebuild with ng serve is not reliable #5404
Comments
I'm also having issues with 1.0.0-rc.1, I want to see the diffs but I don't see a release for it https://github.com/angular/angular-cli/releases. 1.0.0-rc.0 is works fine. |
Hi, I have the same problem since 1.0.0-rc.1. For exemple if I create a new interface (after the ng serve being launch), I have an error on the compilation, that says that the interface does not exsit. To fixe it I need to restart the ng serve. |
beta 32.3 sometime error appear after I save the same code again , don't know why |
Happens to me in beta-26 |
I have same problem with 1.0.0-rc.0 |
I can confirm that changes in interfaces are not picked up automatically in 1.0.0-rc.0, meaning I have to re-run "ng serve" manually whenever I change an interface. |
Sometimes, when I save interface file on editor, compile errors are gone. But after saving other files, error occurs again. |
Having the same or similar issue as the op. Changes to html and css files seem to get detected and update just fine but changes to classes, components, or interfaces get detected but the the in memory build doesn't seem to get updated from time to time until I fully restart ng serve. $ ng --version |
Before there was a bug that the file wasnt forced to rediagnose. If the file changed, we wont diagnose it twice because we keep a hash table per compilation anyway. Fixes angular#4810 Fixes angular#5404
Thx, when RC3 is coming? |
Is there some sort of temporary workaround for this until the next rc comes along? Oh my bad... I'm assuming this should be in the 1.0.0 release? I still see this very frequently... I've tried manually updating @ngtools/webpack as well as uninstaleld cli and re-installed. Probably 2-3 builds and then crtl+c to cancel serving only to restart |
still happens when I try to remove property from interface then errors doesn't show until I use ng serve again @angular/cli: 1.0.0 |
Yep this still happens to me too. Same versions as @rainstormza. |
I am annoyed by this also, I found this while looking for a way to put the compiler in manual mode... |
@hansl My team is still having issues with this at @1.1.1. Has your fix been released yet or should I open a new issue? |
@adamdport |
@rainstormza |
@BobBDE @adamdport |
Having the same problem. Sometimes when I make any changes to my .ts files (not just interfaces), rebuild is initiated, browser page is reloaded, but compiled code stays as if I didn't make the latest change. Windows 10 My (rather awful) workaround is to initiate a rebuild by making some dummy changes and saving source file. If you're using JetBrains IDEs, you can just add a whitespace anywhere and save file. IDE will remove unnecessary whitespace, but rebuild will still be initiated. |
Same issue here. Mostly encounter failure to rebuild after moving, or creating interfaces. The error message is "{file} has no exported member {Interface}". OS: Linux Mint 18.2 |
Bug still exists. When is it going to be fixed? Pretty urgent in my book.
|
I don't know if this is related, but it sounds quite like it. When installing angular-cli, I get the following warning:
Or... how is that done on Windows? |
In the meantime I've updated to @angular/cli-1.5.0-beta.4. Bug/strange behavior persists. |
I use cli 1.4.6, this error still exists, it is a pain in the ass, I have to cancel the serve task and start it again, each time, I got an error in the code. |
It looks like this was fixed in 1.4.7 I'm on Windows 10.
|
Thx. Updated to 1.4.7 and it seems to be fixed :) |
I still have this issue randomly with interfaces their signatures being updated. Using angular/cli ^1.4.8. |
The issue still persists. |
I think this should be reopened |
The issue still persists. @angular/cli 1.7.4 |
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. |
I'm using
ng serve
to get instant feedback while I'm developing but in some (unknown) situations the rebuilding isn't reliable. Sometimes I'm getting compile errors that I've already fixed. If I restartng serve
then the errors don't show up anymore.This worsens developer productivity a lot because I spend time to find an error in my code that doesn't exist anymore until I remember to restart the build command.
OS?
Windows 8
Versions.
Repro steps.
App was created using the CLI. I'm not able to reliable reproduce the problem. It sometimes happens and sometimes not.
However, these are the steps I'm doing:
The log given by the failure.
No specific error message.
Mention any other details that might be useful.
I've used version
1.0.0-beta.24
for a long time without such problems. Only after I updated to1.0.0-rc.1
the problem started to occur.The text was updated successfully, but these errors were encountered: