question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:20

github_iconTop GitHub Comments

3reactions
vytautas-pranskunas-commented, May 9, 2018

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

1reaction
sluglitcommented, May 15, 2018

Disabling sourceMaps seems to resolve the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting sourceMap warnning when run npm run build #174
Getting warning when run npm run build: Plugin typescript: @rollup/plugin-typescript: Typescript 'sourceMap' compiler option must be set to generate source ...
Read more >
SourceMap - HTTP - MDN Web Docs
The SourceMap HTTP response header links generated code to a source map, enabling the browser to reconstruct the original source and present ...
Read more >
What will happen if sourcemap is set as false in Angular
I set "sourceMap": false , but couldn't find any change in the app. What will be the actual change if I set so?...
Read more >
Sourcemap | Leader in Supply Chain Transparency & Due ...
Full suite end-to-end supply chain management software for resilience, compliance, and sustainability.
Read more >
Analyzing Angular bundle with Source Map Explorer
The app only lists the dependencies with repo and npm links. The goal is to see how the map looks. Disclaimer: this is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found