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

6rc.X --stats-json or sourceMap blocking at 95% when optimisation&buildOptimizer are set to true

Open elvisbegovic opened this issue 8 years ago • 20 comments

Versions

Angular CLI: 6.0.0-rc.9 
Node: 10.0.0
OS: win32 x64
Angular: 6.0.0-rc.6
... common, compiler, compiler-cli, core, forms, http
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.5.12
@angular-devkit/build-angular     0.5.12
@angular-devkit/build-optimizer   0.5.12
@angular-devkit/core              0.5.12
@angular-devkit/schematics        0.5.12
@angular/cli                      6.0.0-rc.9
@ngtools/webpack                  6.0.0-rc.10
@schematics/angular               0.5.12
@schematics/update                0.5.12
rxjs                              6.0.0
typescript                        2.7.2
webpack                           4.6.0

Repro steps

Build with this configuration :

 "optimization": true,
              "outputHashing": "none",
              "sourceMap": true,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": true,
              "buildOptimizer": true,

Observed behavior

Blocking at 95% but folder and map exist on filesystem, cli never finish 95% step. (it works if disabled optimisation option) 95% emitting index-html-webpack-plugin

Desired behavior

Finish generation build with sourcemap when optimisation and buildOptimizer are enabled in configuration

update: same behavior in v6 release of angular&cli

elvisbegovic avatar May 02 '18 07:05 elvisbegovic

Have same issue just with Angular 6 and Angular-Cli 6

vytautas-pranskunas- avatar May 09 '18 09:05 vytautas-pranskunas-

+1

robport avatar May 14 '18 10:05 robport

+1

raulalexe avatar May 14 '18 10:05 raulalexe

+1

sluglit avatar May 14 '18 10:05 sluglit

Disabling sourceMaps seems to resolve the problem

sluglit avatar May 15 '18 20:05 sluglit

+1

encool avatar May 16 '18 04:05 encool

I've got similar problem, but for me it freezes at 92%. I'm using Angular & cli v.6.0.1

Maximaximum avatar May 16 '18 11:05 Maximaximum

+1. Works great on my mac but not on windows

eric-nordicfactory avatar May 18 '18 11:05 eric-nordicfactory

Does the same thing on my mac though

AwsmOli avatar May 28 '18 09:05 AwsmOli

Have same issue Angular-Cli 6.0.3 on win10

zwwtj2014 avatar May 29 '18 15:05 zwwtj2014

I also have the same problem, any work around for this?

ArsalRaza avatar Jun 08 '18 04:06 ArsalRaza

Currently still experiencing this issue in angular-cli 6.0.8

TylerHelmuth avatar Jun 28 '18 22:06 TylerHelmuth

+1

lucasBertola avatar Jul 06 '18 13:07 lucasBertola

+1

vladjerca avatar Jul 18 '18 15:07 vladjerca

+1

If you set --optimization=false build can succeed with --source-map enabled

Maciejszuchta avatar Jul 24 '18 07:07 Maciejszuchta

+1

lanmolsz avatar Aug 31 '18 11:08 lanmolsz

+1

vaduveerappan avatar Sep 09 '18 15:09 vaduveerappan

+1

SonicReal avatar Sep 17 '18 11:09 SonicReal

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

alan-agius4 avatar Feb 05 '19 10:02 alan-agius4

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.