gulp构建失败,并使用粉笔版本:3.0.0

将粉笔版本从2.4.2更新到3.0.0后,解决了以下问题。 gulp构建失败导致生产构建失败。

--- frontend-maven-plugin:1.0:gulp (gulp build) @ vcedpa ---
[INFO] Running 'gulp.js build' in /auto/builds/idpa/main/640037/vcedpa-war/../ui
[ERROR] /auto/builds/idpa/main/640037/ui/node_modules/run-sequence/node_modules/chalk/source/index.js:3
[ERROR] const {stdout: stdoutColor,stderr: stderrColor} = require('supports-color');
[ERROR] ^
[ERROR]
[ERROR] SyntaxError: Unexpected token {
[ERROR] at exports.runInThisContext (vm.js:53:16)
[ERROR] at Module._compile (module.js:373:25)
[ERROR] at Object.Module._extensions..js (module.js:416:10)
[ERROR] at Module.load (module.js:343:32)
[ERROR] at Function.Module._load (module.js:300:12)
[ERROR] at Module.require (module.js:353:17)
[ERROR] at require (internal/module.js:12:17)
[ERROR] at Object. (/auto/builds/idpa/main/640037/ui/node_modules/run-sequence/index.js:5:14)
[ERROR] at Module._compile (module.js:409:26)
[ERROR] at Object.Module._extensions..js (module.js:416:10)

Immediate answer will be much appreciated.
YYM819364374 回答:gulp构建失败,并使用粉笔版本:3.0.0

我遇到了看似问题,降级到2.4.2解决了问题

,

您可以发布您的{-# LANGUAGE OverloadedStrings #-} import Turtle import qualified Control.Foldl as Fold translate :: Text -> Text translate response = case response of "-1" -> "Got nothin" otherwise -> response main = do let cmd2 = "emacsclient --eval '(if (org-clocking-p)(org-clock-get-clock-string) -1)'" emacsOut <- fold (inshell cmd2 empty) Fold.head print $ translate $ emacsOut 吗?由于Gulp本身只是一个任务执行者,因此您的gulpfile.js可能会帮助我们确定失败的地方。

仅查看错误本身,似乎gulp可能存在对象解构问题(chalk.js版本2.4.2的源代码似乎没有使用(em )。我个人最近遇到了一些问题,例如gulpfile.js和/或gulp-babel无法正常工作,并且基本上抱怨现代JavaScript功能,不得不将gulp-uglify替换为gulp-uglify。 / p>

我的猜测是,您使用的任何缩小/丑化库都没有更新,因此不会“破坏”对象的结构。

本文链接:https://www.f2er.com/3119796.html

大家都在问