webpack-contrib / uglifyjs-webpack-plugin

[deprecated] UglifyJS Plugin
MIT License
1.38k stars 179 forks source link

ERROR in vendor.c8030bb7976be5202ebc.js from UglifyJs #363

Closed fumblehool closed 6 years ago

fumblehool commented 6 years ago

Expected Behavior

On running webpack --config config/webpack.prod.aot.js --progress --profile --bail It should build the dist files

Actual Behavior

Getting Error -

ERROR in vendor.c8030bb7976be5202ebc.js from UglifyJs
TypeError: Cannot read property '_walk' of null
    at AST_Dot.eval (eval at <anonymous> (/app/angular/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:1:1), <anonymous>:1112:28)
alexander-akait commented 6 years ago

@fumblehool problem in uglify-js, please create issue in their repo

alexander-akait commented 6 years ago

Also please create minimum reproducible test repo

fumblehool commented 6 years ago

@evilebottnawi Thanks for the quick reply! The issue was in uglifyjs-webpack-plugin.

vtni commented 6 years ago

@fumblehool How did you solved it?

fumblehool commented 6 years ago

@vtni I was trying to extend functionality of an older project. It used uglifyjs-webpack-plugin@1.1.4. So I had to downgrade webpack to v3 and upgrade uglifyjs-webpack-plugin@1.1.4 to uglifyjs-webpack-plugin@1.3.0 As pointed out by @evilebottnawi , problem was in uglify-js. This problem is fixed in uglify-js@3.4.3