Error occurred in vue packaging

problem description

vue encountered an error while packing

the environmental background of the problems and what methods you have tried

vue package encountered

related codes

/ / Please paste the code text below (do not replace the code with pictures)

ERROR in static/js/app.381b5e966e947e42597a.js from UglifyJs
Unexpected token: punc (:). / src/libs/util.js:4,15

Build failed with errors.

npm err! Code ELIFECYCLE
npm err! Errno 1
npm err! Bee@1.0.0 build: node build/build.js
npm err! Exit status 1
npm err!
npm err! Failed at the bee@1.0.0 build 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:

what result do you expect? What is the error message actually seen?

clipboard.png

Apr.11,2021

delete modules and reinstall


UglifyJs does not support ES6,. Code that may be ES6 is thrown to UglifyJs without Babel


this may be a similar problem mentioned in article
.
there is an ES6 code that cannot be parsed. You need to configure Babel to parse it first

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3057e-340d2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3057e-340d2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?