Webpack package error from UglifyJs

this error occurred when vue was packing. I don"t know why, ask God for advice


feels that UglifyJs cannot parse ES6. You can try to create a file .babelrc in the same directory of webpack.config.js as follows

{ "presets": ["es2015"] }

if not, check the location of the error prompt to see if there are any grammatical errors


chances are that the same package has been introduced twice. Check the code carefully to see

Menu