Error in uglifyjs-webpack-plugin after upgrade to angular-cli 1.3.0
See original GitHub issueBug 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
> uglifyjs-webpack-plugin@0.4.6 postinstall C:\projects\test-storage\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js
> test-storage@0.26.0 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! test-storage@0.26.0 postinstall: `ng build --prod --aot --no-progress`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test-storage@0.26.0 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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:12 (2 by maintainers)
Top Results From Across the Web
npm install -g @angular/cli gives error Failed at the uglifyjs ...
After that, run npm install -g @angular/cli. If you are using Linux, you can update npm simply by running npm install -g npm....
Read more >angular/angular-cli - Gitter
sudo npm install -g @angular/cli@1.3.0-rc.5 [sudo] password for paul: ... Schema validation failed with the following errors: Data path "" must NOT haveΒ ......
Read more >Massive updates with version 11 of Angular - #6 by mhartington
I get this Error when running ng update @angular/core @angular/cli inside my Ionic project: Package "@angular-devkit/build-angular" has anΒ ...
Read more >angular - Yakov Fain
Theoretically, the upgrade should be a 1-2-3 process that consists of the following three steps: 1. npm install @angular/cli@latest βsave-dev
Read more >Cldr throws the "Cannot read property 'split' of undefined" error
DevExpress Support Team: CLONED FROM T627708: Reporting - ASP.NET Core Support - "Can't resolve 'cldr'" error occurs when using Angular-CLI.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same errors: ERROR in inline.8915cb3a04fea5bd2aea.bundle.js from UglifyJs TypeError: Cannot read property βresetβ of undefined
Versions:
βββ¬ @angular/cli@1.3.1 β βββ¬ html-webpack-plugin@2.30.1 β β βββ¬ html-minifier@3.5.3 β β βββ uglify-js@3.0.28 β βββ¬ postcss-url@5.1.2 β β βββ¬ directory-encoder@0.7.2 β β βββ¬ handlebars@1.3.0 β β βββ uglify-js@2.3.6 β βββ¬ webpack@3.4.1 β βββ¬ uglifyjs-webpack-plugin@0.4.6 β βββ uglify-js@2.8.29 βββ¬ karma-coverage-istanbul-reporter@1.3.0 βββ¬ istanbul-api@1.1.9 βββ¬ istanbul-reports@1.1.1 βββ¬ handlebars@4.0.10 βββ uglify-js@2.8.27
This fixed the issue / error for me (remove node_modules directory and install node again:
@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
uglifyjs-webpack-plugin@0.4.6
, 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
andpackage-lock.json
before reinstalling node_modules.