Skip to content

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

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

Closed
elvisbegovic opened this issue May 2, 2018 · 20 comments

Comments

@elvisbegovic
Copy link
Contributor

elvisbegovic commented May 2, 2018

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

@vytautas-pranskunas-
Copy link

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

@robport
Copy link

robport commented May 14, 2018

+1

2 similar comments
@raulalexe
Copy link

+1

@sluglit
Copy link

sluglit commented May 14, 2018

+1

@sluglit
Copy link

sluglit commented May 15, 2018

Disabling sourceMaps seems to resolve the problem

@encool
Copy link

encool commented May 16, 2018

+1

@Maximaximum
Copy link

Maximaximum commented May 16, 2018

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

@eric-nordicfactory
Copy link

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

@AwsmOli
Copy link

AwsmOli commented May 28, 2018

Does the same thing on my mac though

@zwwtj2014
Copy link

zwwtj2014 commented May 29, 2018

Have same issue Angular-Cli 6.0.3 on win10

@ArsalRaza
Copy link

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

@TylerHelmuth
Copy link

Currently still experiencing this issue in angular-cli 6.0.8

@lucasBertola
Copy link

+1

1 similar comment
@vladjerca
Copy link

+1

@Maciejszuchta
Copy link

Maciejszuchta commented Jul 24, 2018

+1

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

@lanmolsz
Copy link

+1

2 similar comments
@vaduveerappan
Copy link

+1

@SonicReal
Copy link

+1

@alan-agius4
Copy link
Collaborator

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.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests