Hello, anyone is experiencing errors when using jsUglify? CSS works as intended, but JS gives errors:
C:\laragon\www\smartadmin-html-full>gulp build
[12:11:15] Using gulpfile C:\laragon\www\smartadmin-html-full\gulpfile.js
[12:11:15] Starting 'build'...
[12:11:15] Starting 'build-bundle'...
==================> Generating bundles...
[12:11:15] Finished 'build-bundle' after 111 ms
[12:11:15] Starting 'build-nav'...
==================> Generating nav.hbs...
[12:11:15] Finished 'build-nav' after 29 ms
[12:11:15] Starting 'build-html'...
==================> Building HTML pages
[12:11:21] The following tasks did not complete: build, build-html
[12:11:21] Did you forget to signal async completion?
internal/streams/legacy.js:59
throw er; // Unhandled stream error in pipe.
^
GulpUglifyError: unable to minify JavaScript
at createError (C:\laragon\www\smartadmin-html-full\node_modules\gulp-uglify\lib\create-error.js:5:14)
at C:\laragon\www\smartadmin-html-full\node_modules\gulp-uglify\lib\minify.js:56:15
at DestroyableTransform.transform (C:\laragon\www\smartadmin-html-full\node_modules\gulp-uglify\composer.js:12:19)
at DestroyableTransform.Transform.read (C:\laragon\www\smartadmin-html-full\node_modules\readable-stream\lib_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (C:\laragon\www\smartadmin-html-full\node_modules\readable-stream\lib_stream_transform.js:172:83)
at doWrite (C:\laragon\www\smartadmin-html-full\node_modules\readable-stream\lib_stream_writable.js:428:64)
at writeOrBuffer (C:\laragon\www\smartadmin-html-full\node_modules\readable-stream\lib_stream_writable.js:417:5)
at DestroyableTransform.Writable.write (C:\laragon\www\smartadmin-html-full\node_modules\readable-stream\lib_stream_writable.js:334:11)
at DestroyableTransform.ondata (C:\laragon\www\smartadmin-html-full\node_modules\readable-stream\lib_stream_readable.js:619:20)
at DestroyableTransform.emit (events.js:223:5) {
cause: JS_Parse_Error [SyntaxError]: Unexpected token: name «Renderer», expected: punc «;»
at JS_Parse_Error.get (eval at <anonymous> (C:\laragon\www\smartadmin-html-full\node_modules\uglify-js\tools\node.js:18:1), <anonymous>:71:23)
at formatError (internal/util/inspect.js:909:38)
at formatRaw (internal/util/inspect.js:703:14)
at formatValue (internal/util/inspect.js:591:10)
at formatProperty (internal/util/inspect.js:1406:11)
at formatRaw (internal/util/inspect.js:785:9)
at formatValue (internal/util/inspect.js:591:10)
at inspect (internal/util/inspect.js:221:10)
at afterInspector (internal/errors.js:663:14) {
message: 'Unexpected token: name «Renderer», expected: punc «;»',
filename: 'summernote.js',
line: 126,
col: 6,
pos: 4764
},
plugin: 'gulp-uglify',
fileName: 'C:\laragon\www\smartadmin-html-full\node_modules\summernote\dist\summernote.js',
showStack: false
}
C:\laragon\www\smartadmin-html-full>
Can someone help?
Regards