-
Notifications
You must be signed in to change notification settings - Fork 12k
ng serve hangs at 70% #3594
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
same here, TEMPORARY WORKAROUND |
In my case downgrading to tslint 4.0.2 solved the problem. |
@antonybudianto7 and @schroedan ... didn't work for me :/ |
@donotfold have you cleaned your |
Have the same issue. But |
btw I used beta.22-1, not beta.23, sorry forgot to mention it. |
I have the same issue with beta.22-1 |
Having the same issue with beta.21. Tried |
+1 EDIT: Apparently it has something to do with ANOTHER EDIT: NPM warn with 1.0.0beta.22-1 package.json:
Yarn warnings:
|
@nikoTM It definitely has something to do with |
Looks like it's solved cc @hansl |
Right. The process now terminates instead. I just submitted a PR for a better error message and, in the case of watching (serve or build --watch), stay in process and watch file changes. |
Fresh install of angular-cli@latest(1.0.0-beta.22-1) and |
@Kosmonaft I've raised this issue on the master branch. So either revert to beta.21, or clone the repository and run from there. |
I got it compiling by changing the codelyzer to version 2, but I'm not sure this was the culprit. angular 2.2.3
|
I think it's related with how yarn is resolving the dependencies. It looks like it's installing versions that have NOT been published on npm such us version 1.2.0 of @ngtools/webpack instead of the last published version (1.1.9) and the same thing happens with codelyzer @ngtools/package in npm displaying 1.1.9 is the latest of 13 releases |
@rolandoldengarm I clone the repository and now I'm getting this error: My current version: |
Just as documented here: https://github.com/angular/angular-cli#development-hints-for-hacking-on-angular-cli |
I had the same issue after updating to [email protected], @angular@2.3.1, and [email protected]. I got around the 70% build hang by downgrading to [email protected] and installing [email protected] as a dev dependency. |
Workaround:
For me in this way is working |
I had this issue when I tried to use cli with angular 2. Then I switched to angular-webpack-starter which worked fine. Now Im trying to upgrade my app to angular 5 I have this issue again. It just freezes on 76% forever without any errors or something on how I can fix this issue. When I configure my app from scratch using angular 5 and systemjs - it works fine. |
@Kosmonaft Thank you!!!! This issue took me nearly 16 hours to figure out. Needless to say, I tried nearly everything to resolve the issue, however, to no avail, nothing worked. ng build is all it took. Also, below are some of my versions: Angular CLI: 1.7.4 @angular/cli: 1.7.4 Another thing I should mention is that I had to downgrade the ngx-spinner module from the latest version to version 6.0.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. |
Uh oh!
There was an error while loading. Please reload this page.
OS?
Windows 10
Versions.
Repro steps.
It was working fine in beta-21.
Latest version results in this error. I desperately need this version as I need the i18n features.
The log given by the failure.
Mention any other details that might be useful.
Another issue ( #3508 ) with this problem was marked as duplicate of ( #3368 ). That's not right. In my case, in beta-21 the application compiles fine in AOT. So, as since beta-22 AOT is enabled by default, it should also still work. So it may be an AOT issue, but by making AOT no longer default, this issue won't be fixed.
I am starting to lose confidence in Angular CLI. I am aware it's work in progress, but in every commit I get random errors. I've tried most of the commits since i18n was introduced, and every one gives a different error.
And the fact that .beta-22 introduced a major bug (AOT enabled by default) doesn't help either.
You're doing a great job, but keep in mind that people use this tool for production websites.
The text was updated successfully, but these errors were encountered: