angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Halting Problem at 95%. Shows emitting as the action doing.

Open tibinthomas opened this issue 8 years ago • 47 comments

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

Angular CLI: 1.7.3
Node: 9.8.0
OS: win32 x64
Angular: 5.2.8
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cli: 1.7.3
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.4.0
webpack-bundle-analyzer: 2.11.1

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

  • Apply the above script to any angular project.
  • If we replace --scourcemap with --no-souecemap the problem will not comes.

Observed behavior

The program is running indefinitely.

Desired behavior

The program should halt to say if there is some error in the script.

tibinthomas avatar Mar 16 '18 05:03 tibinthomas

still happens in version 7 stuck on 95% index-html-webpack-plugin

mattmeye avatar Jan 18 '19 11:01 mattmeye

any solution for 95% emitting CopyPlugin (version 7)

sidhommoez avatar Jan 22 '19 20:01 sidhommoez

Happens when using --watch with --poll ${time} and/or with --output-path, but not with --watch by itself. --watch not watching seems to be a Vagrant/Windows issue, but that's beside the point. Pain!

kyrrr avatar Feb 18 '19 13:02 kyrrr

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.

JoeWHoward avatar Mar 12 '19 06:03 JoeWHoward

any solution for "ng build --prod 95% emitting index-html-webpack-plugin" (Angular version 7) when set "sourceMap": true in angular.json ?

MoeinMP avatar Mar 28 '19 19:03 MoeinMP

+1 Still need any workaround for elder versions of Angular cli. In my case it is 1.7.3

Zordaxy avatar Apr 15 '19 13:04 Zordaxy

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.