Angular-cli: Error in uglifyjs-webpack-plugin after upgrade to angular-cli 1.3.0

Created on 17 Aug 2017  ยท  12Comments  ยท  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.


Windows (appveyor CI)
angular 1.3.0
nodejs 8.3.0 (only) node 6.11 don't contain that problem

Repro steps.


upgrade from 1.2.6 to 1.3.0

ng build --prod --aot --no-progress

The log given by the failure.


You can check from appveyor job: https://ci.appveyor.com/project/pumano/test-storage/build/321/job/4qk3ay3h3ka7lji6

> [email protected] postinstall C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js
> [email protected] postinstall C:\projects\test-storage
> ng build --prod --aot --no-progress
Date: 2017-08-17T08:30:38.052Z
Hash: 643e20ff07bd23477c56
Time: 18875ms
chunk {0} 0.9651464192a1456cd1ad.chunk.js (common) 43.6 kB {11}  [rendered]
chunk {1} 1.722915a0ebc00556f0cc.chunk.js () 1.25 MB {11}  [rendered]
chunk {2} 2.d084cada3e768a39dcb4.chunk.js () 136 kB {11}  [rendered]
chunk {3} 3.f717e56ee6fd01f25952.chunk.js () 165 kB {11}  [rendered]
chunk {4} 4.e5f1f705a12f40ea357c.chunk.js () 10.8 kB {11}  [rendered]
chunk {5} 5.0678b71e521922a0a540.chunk.js () 23.2 kB {11}  [rendered]
chunk {6} 6.eb95e1c4e73a4b425755.chunk.js () 10.2 kB {11}  [rendered]
chunk {7} 7.1137d3028fc005b6b348.chunk.js () 52.6 kB {11}  [rendered]
chunk {8} 8.b15b48a1090a6d5e8bf2.chunk.js () 10.8 kB {11}  [rendered]
chunk {9} 9.d07fbd9f0a98a30427fa.chunk.js () 7.72 kB {11}  [rendered]
chunk {10} polyfills.5a481b7cc16ba58b0b89.bundle.js (polyfills) 236 kB {14} [initial] [rendered]
chunk {11} main.df08eec182cb675980e3.bundle.js (main) 233 kB {13} [initial] [rendered]
chunk {12} styles.5c0cee92a99c530e1284.bundle.css (styles) 168 kB {14} [initial] [rendered]
chunk {13} vendor.242bc3972fcf015c04b6.bundle.js (vendor) 2.59 MB [initial] [rendered]
chunk {14} inline.b6b9f1f75870aca114b2.bundle.js (inline) 6.16 kB [entry] [rendered]
ERROR in 0.9651464192a1456cd1ad.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 1.722915a0ebc00556f0cc.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 2.d084cada3e768a39dcb4.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 3.f717e56ee6fd01f25952.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 4.e5f1f705a12f40ea357c.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 5.0678b71e521922a0a540.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 6.eb95e1c4e73a4b425755.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 7.1137d3028fc005b6b348.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 8.b15b48a1090a6d5e8bf2.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in 9.d07fbd9f0a98a30427fa.chunk.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in polyfills.5a481b7cc16ba58b0b89.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in main.df08eec182cb675980e3.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in styles.0bf625093011ce3f749c.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in vendor.242bc3972fcf015c04b6.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
ERROR in inline.b6b9f1f75870aca114b2.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
    at C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:96:21
    at Array.forEach (<anonymous>)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin\dist\index.js:54:20)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at self.applyPluginsAsync.err (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:640:10)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at Compilation.<anonymous> (C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:272:11)
    at Compilation.applyPluginsAsyncSeries (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:206:13)
    at sealPart2 (C:\projects\test-storage\node_modules\webpack\lib\Compilation.js:636:9)
    at next (C:\projects\test-storage\node_modules\tapable\lib\Tapable.js:202:11)
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:241:13
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
    at iteratorCallback (C:\projects\test-storage\node_modules\async\dist\async.js:998:13)
    at C:\projects\test-storage\node_modules\async\dist\async.js:906:16
    at C:\projects\test-storage\node_modules\extract-text-webpack-plugin\dist\index.js:224:15
    at C:\projects\test-storage\node_modules\async\dist\async.js:421:16
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `ng build --prod --aot --no-progress`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\appveyor\AppData\Roaming\npm-cache\_logs\2017-08-17T08_30_38_130Z-debug.log

Desired functionality.

Mention any other details that might be useful.


Looks like issue: https://github.com/webpack/webpack/issues/5107
https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/31

Most helpful comment

Same errors:
ERROR in inline.8915cb3a04fea5bd2aea.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined

Versions:

  • node version: 7.10.0
  • angular-cli: 1.3.1
  • angular: 4.3.5
npm ls uglify-js

โ”œโ”€โ”ฌ @angular/[email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”€ [email protected]

This fixed the issue / error for me (remove node_modules directory and install node again:

rm -rf node_modules/
npm install

All 12 comments

same problem

node version: 7.9.0
angular-cli: 1.3.0
angular: 4.3.1

Same here :
node version: 8.1.0
angular-cli: 1.3.1
angular: 4.3.5

Tried to go back to angular-cli 1.2.7 ... and the build re-works.

Same here:
node version: 6.11.1
angular-cli: 1.3.0
angular: 4.3.2

Same issue -
ERROR in polyfills.0963b44a58b5526cfab7.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at D:\pramod\Angular2\player\node_modules\uglifyjs-webpack-plugin\dist\index
.js:96:21
at Array.forEach (native)
at Compilation. (D:\pramod\Angular2\player\node_modules\uglifyjs-
webpack-plugin\dist\index.js:54:20)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:119:6)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at self.applyPluginsAsync.err (D:\pramod\Angular2\player\node_modules\webpac
k\lib\Compilation.js:640:10)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin.callback (D:\pramod\Angular2\player\node_m
odules\webpack\lib\ProgressPlugin.js:115:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation. (D:\pramod\Angular2\player\node_modules\extract-t
ext-webpack-plugin\dist\index.js:272:11)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at sealPart2 (D:\pramod\Angular2\player\node_modules\webpack\lib\Compilation
.js:636:9)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:111:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
ERROR in main.fc57df45d5d2fe0fbe79.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at D:\pramod\Angular2\player\node_modules\uglifyjs-webpack-plugin\dist\index
.js:96:21
at Array.forEach (native)
at Compilation. (D:\pramod\Angular2\player\node_modules\uglifyjs-
webpack-plugin\dist\index.js:54:20)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:119:6)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at self.applyPluginsAsync.err (D:\pramod\Angular2\player\node_modules\webpac
k\lib\Compilation.js:640:10)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin.callback (D:\pramod\Angular2\player\node_m
odules\webpack\lib\ProgressPlugin.js:115:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation. (D:\pramod\Angular2\player\node_modules\extract-t
ext-webpack-plugin\dist\index.js:272:11)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at sealPart2 (D:\pramod\Angular2\player\node_modules\webpack\lib\Compilation
.js:636:9)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:111:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
ERROR in scripts.c9d88ec9733b4447788d.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at D:\pramod\Angular2\player\node_modules\uglifyjs-webpack-plugin\dist\index
.js:96:21
at Array.forEach (native)
at Compilation. (D:\pramod\Angular2\player\node_modules\uglifyjs-
webpack-plugin\dist\index.js:54:20)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:119:6)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at self.applyPluginsAsync.err (D:\pramod\Angular2\player\node_modules\webpac
k\lib\Compilation.js:640:10)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin.callback (D:\pramod\Angular2\player\node_m
odules\webpack\lib\ProgressPlugin.js:115:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation. (D:\pramod\Angular2\player\node_modules\extract-t
ext-webpack-plugin\dist\index.js:272:11)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at sealPart2 (D:\pramod\Angular2\player\node_modules\webpack\lib\Compilation
.js:636:9)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:111:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
ERROR in styles.9bb7ea9b1695027561fd.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at D:\pramod\Angular2\player\node_modules\uglifyjs-webpack-plugin\dist\index
.js:96:21
at Array.forEach (native)
at Compilation. (D:\pramod\Angular2\player\node_modules\uglifyjs-
webpack-plugin\dist\index.js:54:20)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:119:6)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at self.applyPluginsAsync.err (D:\pramod\Angular2\player\node_modules\webpac
k\lib\Compilation.js:640:10)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin.callback (D:\pramod\Angular2\player\node_m
odules\webpack\lib\ProgressPlugin.js:115:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation. (D:\pramod\Angular2\player\node_modules\extract-t
ext-webpack-plugin\dist\index.js:272:11)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at sealPart2 (D:\pramod\Angular2\player\node_modules\webpack\lib\Compilation
.js:636:9)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:111:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
ERROR in vendor.ce9d3633e8352e99ff09.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at D:\pramod\Angular2\player\node_modules\uglifyjs-webpack-plugin\dist\index
.js:96:21
at Array.forEach (native)
at Compilation. (D:\pramod\Angular2\player\node_modules\uglifyjs-
webpack-plugin\dist\index.js:54:20)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:119:6)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at self.applyPluginsAsync.err (D:\pramod\Angular2\player\node_modules\webpac
k\lib\Compilation.js:640:10)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin.callback (D:\pramod\Angular2\player\node_m
odules\webpack\lib\ProgressPlugin.js:115:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation. (D:\pramod\Angular2\player\node_modules\extract-t
ext-webpack-plugin\dist\index.js:272:11)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at sealPart2 (D:\pramod\Angular2\player\node_modules\webpack\lib\Compilation
.js:636:9)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:111:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
ERROR in inline.e9c5ebfb8f74ea84cc91.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at D:\pramod\Angular2\player\node_modules\uglifyjs-webpack-plugin\dist\index
.js:96:21
at Array.forEach (native)
at Compilation. (D:\pramod\Angular2\player\node_modules\uglifyjs-
webpack-plugin\dist\index.js:54:20)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:119:6)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at self.applyPluginsAsync.err (D:\pramod\Angular2\player\node_modules\webpac
k\lib\Compilation.js:640:10)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin.callback (D:\pramod\Angular2\player\node_m
odules\webpack\lib\ProgressPlugin.js:115:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1
4)
at Compilation. (D:\pramod\Angular2\player\node_modules\extract-t
ext-webpack-plugin\dist\index.js:272:11)
at Compilation.applyPluginsAsyncSeries (D:\pramod\Angular2\player\node_modul
es\tapable\lib\Tapable.js:206:13)
at sealPart2 (D:\pramod\Angular2\player\node_modules\webpack\lib\Compilation
.js:636:9)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:202:1
1)
at Compilation.compilation.plugin (D:\pramod\Angular2\player\node_modules\we
bpack\lib\ProgressPlugin.js:111:6)
at next (D:\pramod\Angular2\player\node_modules\tapable\lib\Tapable.js:204:1

Can you please suggest how to roll back this version.

Same errors:
ERROR in inline.8915cb3a04fea5bd2aea.bundle.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined

Versions:

  • node version: 7.10.0
  • angular-cli: 1.3.1
  • angular: 4.3.5
npm ls uglify-js

โ”œโ”€โ”ฌ @angular/[email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”ฌ [email protected]
โ””โ”€โ”€ [email protected]

This fixed the issue / error for me (remove node_modules directory and install node again:

rm -rf node_modules/
npm install

Not sure what happened but reinstalling all packages as @git-no mentioned worked

I reinstalled the packages but same issue

I use appveyor CI, where every time clean container with no node_modules. It's not working properly for me for Windows with node 8.3

@pumano mentioned this at the end of his issue report but I'm putting it here again for visibility:

The problem seems to be webpack/webpack#5107, webpack-contrib/uglifyjs-webpack-plugin#31, webpack-contrib/uglifyjs-webpack-plugin#44.

The problem seems to be fixed on their side starting with [email protected], and some users in this issue reported that reinstalling the packages fixed it for them.

If it did not fix the problem for you, make sure you're also clearing yarn.lock and package-lock.json before reinstalling node_modules.

I have cache section in appveyor.yml file for cache NPM / Yarn libs.
Deleting cache section from appveyor.yml solve the problem.

Closing this, it seems to be sorted and just a cache problem now.

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brtnshrdr picture brtnshrdr  ยท  3Comments

hareeshav picture hareeshav  ยท  3Comments

JanStureNielsen picture JanStureNielsen  ยท  3Comments

MateenKadwaikar picture MateenKadwaikar  ยท  3Comments

ericel picture ericel  ยท  3Comments