wxs77577 / rest-admin

Restful Admin Dashboard Based on Vue and Boostrap 4
http://rest-admin.genyii.com
MIT License
623 stars 128 forks source link

Build for production error: Unexpected token: name (code) [./node_modules/vue-snotify/vue-snotify.esm.js:104 #14

Closed metrey closed 5 years ago

metrey commented 5 years ago

Build for production with npm run-script build got error

` ERROR in static/js/vendor.js from UglifyJs Unexpected token: name (code) [./node_modules/vue-snotify/vue-snotify.esm.js:104,0][static/js/vendor.js:27544,12]

Build failed with errors.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! my-dev@0.9.1 build: node build/build.js npm ERR! Exit status 1 `

I did try around this: https://github.com/artemsky/vue-snotify/issues/14 but not work at all.

My environment:

Anyone face or any solution?

metrey commented 5 years ago

I comment out the plugin UglifyJs

// UglifyJs do not support ES6+, you can also use babel-minify for better treeshaking: https://github.com/babel/minify // new webpack.optimize.UglifyJsPlugin({

wxs77577 commented 5 years ago

Sorry but it seems not the problem of rest-admin.

wxs77577 commented 5 years ago

Closed temporary.