undertaker: Error - "Task function must be specified"
I’ve updated my GULP to v4
and i’m getting this error. Here’s the log:
C:\xampp\htdocs\project>gulp
assert.js:89
throw new assert.AssertionError({
^
AssertionError: Task function must be specified
at Gulp.set [as _setTask] (C:\xampp\htdocs\project\node_modules\gulp\node_modules\undertaker\lib\set-task.js:12:3)
at Gulp.task (C:\xampp\htdocs\project\node_modules\gulp\node_modules\undertaker\lib\task.js:13:8)
at Object.<anonymous> (C:\xampp\htdocs\project\gulpfile.js:47:6)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Liftoff.handleArguments (C:\Users\vsync\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:116:3)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (2 by maintainers)
@bradodarb - The fix was to go back to v3 😃
https://fettblog.eu/gulp-4-parallel-and-series/ because gulp.task(name, deps, func) was replaced by gulp.task(name, gulp.{series|parallel}(deps, func))
@voyti there’s a great article about upgrading in our docs: https://www.liquidlight.co.uk/blog/article/how-do-i-update-to-gulp-4/
@phated All clear, thank you!