E
E
Efess862021-08-16 13:06:41
gulp.js
Efess86, 2021-08-16 13:06:41

Error when starting gallp. Gulp SyntaxError in plugin "gulp-uglify-es"?

Good to everyone.

When running gulp with the gulp command, the plugin gives the following message:

SyntaxError in plugin "gulp-uglify-es"
Message:
'return' outside of function
Details:
filename: app.js
line: 1851
col: 1
pos: 59594

on the plugin's off page ( https://www.npmjs.com/package/gulp-uglify-es ) there is this message:

gulp stream to uglify with 'terser' (es6 supported).

terser is the new 'uglify-es'. uglify-es is no longer maintained.

Is the error caused because of this or am I looking in the wrong place at all?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question