-
Notifications
You must be signed in to change notification settings - Fork 12k
Halting Problem at 95%. Shows emitting as the action doing. #9980
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
Running into this as well on CLI 1.7.3 (Windows 10 x64, node 9.x). Prior version seem to work (cli 1.6.8). I think this may be related webpack/webpack#2908 |
I am experiencing this too with 1.7.3 on Windows 10. Build finishes normally if I remove --sourcemaps from parameters. |
Duplicate of #6795 (sourcemap problem on 1.7.x) PS: Actually the original issue was possibly another thing, but last month of comments refer to the same thing as this one. |
same here in 6rc6 infite :
same problem if I set ps: it working when set (version : nodejs10, npm6, win64, angular6rc5, cli6rc6) cc @clydin |
Same issue here with Cli 6.0.0, I can only build if one of |
Samesies on moving from 1.7.4 to 6 to get more control over sourcemaps etc. for CD. Windows 10. |
Same as #10591 |
+1 |
+1, also having this problem when |
I have the same issue when On Mac it works great |
Please note, I get this problem on my PC, but not on my Macbook. A colleague has also seen this problem on a PC laptop. So it seems Windows specific, |
having it on mac too now |
Same issue. This is not first time when you get information about problem and it meet's with zero reaction from your side. |
Building on Windows 10 or 2012 R2. I do see the 95% hanging issue if I have If I change optimization to false, it doesn't hang. Can anyone point me to something that even explains what optimization does? I know buildOptimizer is used for tree shaking, but unsure what optimization does. |
Getting, same issue... Any work around? |
I have the same problem with my project. Win 10, 64 bit, I've seen this starting since 1.7.x. It is still happening with latest angular-cli (6.0.5). |
+1 |
Disappointing that something that prevents cli working in production is seemingly ignored. Am I missing something? |
+1 |
Our prod build runs as long as we're not using maps, so while it's not a breaking issue it is a serious qol issue. |
I find out that the problem happens when I try to build with parameter - - output-path I'm avoiding the problem by running NG config set output-path before build |
The output path also can be configured in the build options in the angular.json file |
+1 |
Unfortunately our build fails to complete with or without base-href |
On webpack
Indeed the source maps for the
I'd say it's okay to not generate .css.map for production builds. I don't think they are useful. @filipesilva how to proceed with this fix? This is a show stopper for v6.x for Windows users. Refs: |
Does anyone have a simple repro I can look at for this issue? @awerlang you seem to have a very good idea of the problem. I think I know the general situation where a badly formatted directory name can be passed inside the CLI setup. If you can put together a simple repro that exhibits this behaviour maybe I can track it down. |
@filipesilva Thanks for answering. This can be easily reproduced on Windows using quickstart: https://angular.io/generated/zips/cli-quickstart/cli-quickstart.zip
|
@awerlang I couldn't reproduce using a project I had around, but could reproduce following your steps. I was able to track down the precise flags to Following your hint of looking inside the
Between projects that built, and projects that did not built, the difference seemed to be that absolute path. Investigating further, it seems like this problem happens only for component css, when our internal I haven't been able to track down which dependency is it that causes this. Comparing the dependency trees between a new project and a project that exhibits the bug didn't show anything relevant... except maybe that in a bugged project I saw I pushed up a repro that exhibits this behaviour at https://github.com/filipesilva/angular-cli-9980. I used node 8.11.0 and npm 6.1.0 to install the dependencies. Still looking further into this problem. |
I have a project that started out using CSS and I switched to SCSS after a while. I've been having the halting problem. After reading your summary I checked to see if I have any CSS files still in use. After converting all my CSS files to SCSS the build started working again with source maps on. So I can confirm that the issue is directly related to CSS files. |
Turns out the reason my initial repro did not work was because the component CSS needed to have some content, not only exist. So having some basic CSS on
On a starter project and running Changing that to a So now we know that it's definitely related to CSS files specifically and content is needed to reproduce. |
Up to that point, |
Why is this issue closed? On Angular/CLI 6.1.1 the issue still occurs when I have optimization enabled @hansl ? |
@roldengarm I haven't tried on my project at work yet, but I pointed out earlier the issue could be reproduced with v6.0.8 on the quickstart itself. The problem went away with the latest version. I suggest openning your own issue with a repro. |
I am able to reproduce the same with 6.2.1 |
In my case, the problem was solved by updating devkit package |
With @icesmith suggestion of upgrading @angular-devkit/build-angular to 0.8.1 , I am able to enable source-maps on production build |
still happens in version 7 stuck on 95% emitting CopyPlugin |
still happens in version 7 stuck on 95% index-html-webpack-plugin |
any solution for 95% emitting CopyPlugin (version 7) |
Happens when using |
Not sure if this will help anyone else, but for me (Windows 10) the node_modules folder was getting installed in the wrong place, I moved it a directory down and it solved the problem. |
any solution for "ng build --prod 95% emitting index-html-webpack-plugin" (Angular version 7) when set "sourceMap": true in angular.json ? |
+1 |
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 was hit by a problem like halting problem of truing machine while using the angular cli as follows.
My script : node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build -e=prod --prod --sourcemap --vendor-chunk=true --build-optimizer
Versions
Repro steps
Use this script : node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build -e=prod --prod --sourcemap --vendor-chunk=true --build-optimizer --stats-json
Observed behavior
Desired behavior
The program should halt to say if there is some error in the script.
The text was updated successfully, but these errors were encountered: