Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/444.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 语义UI-`gulp build`返回JS错误_Javascript_Jquery_Gulp_Semantic Ui - Fatal编程技术网

Javascript 语义UI-`gulp build`返回JS错误

Javascript 语义UI-`gulp build`返回JS错误,javascript,jquery,gulp,semantic-ui,Javascript,Jquery,Gulp,Semantic Ui,我安装了最新版本的Semantic UI,但在使用gulp build构建资产时,编译JS会返回以下错误,而CSS编译得很好 Building assets [10:48:00] Created: dist/components/site.js [10:48:00] Plumber found unhandled error: GulpUglifyError: unable to minify JavaScript Caused by: DefaultsError: `preserveComm

我安装了最新版本的Semantic UI,但在使用
gulp build
构建资产时,编译JS会返回以下错误,而CSS编译得很好

Building assets
[10:48:00] Created: dist/components/site.js
[10:48:00] Plumber found unhandled error:
 GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/site.js
[10:48:00] Created: dist/components/form.js
[10:48:00] Plumber found unhandled error:
 GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/form.js
[10:48:00] Created: dist/components/accordion.js
[10:48:00] Plumber found unhandled error:
 GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/accordion.js
[10:48:00] Created: dist/components/checkbox.js
[10:48:00] Plumber found unhandled error:
 GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/checkbox.js
[10:48:00] Created: dist/components/dimmer.js
[10:48:00] Plumber found unhandled error:
 GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
File: /home/forge/mysite.co/public/semantic/dist/components/dimmer.js

我以前在使用语义UI的项目中从未遇到过这个问题,所以我不确定是什么导致了这个问题。有人能提出修复方案吗?

此错误正在修复中。请看这里: