Skip to content
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

Error in uglifyjs-webpack-plugin after upgrade to angular-cli 1.3.0 #7408

Closed
pumano opened this issue Aug 17, 2017 · 12 comments
Closed

Error in uglifyjs-webpack-plugin after upgrade to angular-cli 1.3.0 #7408

pumano opened this issue Aug 17, 2017 · 12 comments
Assignees

Comments

@pumano
Copy link

pumano commented Aug 17, 2017

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: webpack/webpack#5107
webpack-contrib/uglifyjs-webpack-plugin#31

@drosi94
Copy link

drosi94 commented Aug 17, 2017

same problem

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

@msieurtoph
Copy link

msieurtoph commented Aug 18, 2017

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.

@NickG22293
Copy link

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

@pmali-compumatrice
Copy link

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.

@git-no
Copy link

git-no commented Aug 20, 2017

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

@beemdvp
Copy link

beemdvp commented Aug 21, 2017

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

@drosi94
Copy link

drosi94 commented Aug 21, 2017

I reinstalled the packages but same issue

@pumano
Copy link
Author

pumano commented Aug 21, 2017

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

@filipesilva
Copy link
Contributor

filipesilva commented Aug 24, 2017

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

@filipesilva filipesilva self-assigned this Aug 24, 2017
@pumano
Copy link
Author

pumano commented Aug 28, 2017

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

@filipesilva
Copy link
Contributor

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

@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 7, 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

8 participants