问题出现在 gulp.watch 的时候,一旦修改内容,就会报错,单独编译不用watch就不会报错。报错如下:
] 'build' errored after 29 μs
[19:42:57] Error: The thunkFunction already filled
at child (E:\code\zwl-pc-h5\node_modules\thunks\index.js:151:32)
at Gulp.thunkFunction (E:\code\zwl-pc-h5\node_modules\thunks\index.js:146:14)
at module.exports (E:\code\zwl-pc-h5\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (E:\code\zwl-pc-h5\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (E:\code\zwl-pc-h5\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (E:\code\zwl-pc-h5\node_modules\orchestrator\index.js:134:8)
at Gulp.<anonymous> (E:\code\zwl-pc-h5\node_modules\gulp\index.js:36:18)
at Gaze.<anonymous> (E:\code\zwl-pc-h5\node_modules\glob-watcher\index.js:18:14)
at emitTwo (events.js:106:13)
at Gaze.emit (events.js:191:7)
没碰到过这问题,建议贴出相关代码。