gulp执行任务报错
错误信息: The following tasks did not complete: first,Did you forget to signal async completion?
gulp执行任务报错The following tasks did not complete: first,Did you ...?gulp构建全局任务时报错AssertionError [ERR_A
解决办法
使用done来进行回调函数,如下图所示:
gulp执行任务报错The following tasks did not complete: first,Did you ...?gulp构建全局任务时报错AssertionError [ERR_A
修改后,任务可以顺利执行了
gulp执行任务报错The following tasks did not complete: first,Did you ...?gulp构建全局任务时报错AssertionError [ERR_A

gulp构建全局任务时报错
错误信息:AssertionError [ERR_ASSERTION]: Task function must be specified
at Gulp.set [as _setTask] (G:\study\Node\node_modules\undertaker\lib\set-task.js:10:3)
at Gulp.task (G:\study\Node\node_modules\undertaker\lib\task.js:13:8)
at Object. (G:\study\Node\myGulp\gulpfile.js:57:6)….
gulp执行任务报错The following tasks did not complete: first,Did you ...?gulp构建全局任务时报错AssertionError [ERR_A
解决办法
在调用的函数名前加上gulp.series函数即可,如下图所示:
gulp执行任务报错The following tasks did not complete: first,Did you ...?gulp构建全局任务时报错AssertionError [ERR_A
保存文件执行,可以看到任务执行完成
gulp执行任务报错The following tasks did not complete: first,Did you ...?gulp构建全局任务时报错AssertionError [ERR_A

相关文章:

  • 2021-06-21
  • 2021-06-21
  • 2021-05-12
  • 2022-12-23
  • 2022-03-03
  • 2021-12-01
  • 2022-12-23
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案