Description
while I used gulp 3.9.1 - everything was fine.
after updating gulp to version 4.0.0, running the run-sequence code causes an error:
[16:21:33] TypeError: gulp.hasTask is not a function
at D:\node_modules\run-sequence\index.js:23:22
at Array.forEach ()
at verifyTaskSets (D:\node_modules\run-sequence\index.js:17:11)
at runSequence (D:\node_modules\run-sequence\index.js:130:2)
at D:\webProjects\motobratva\my\gulpfile.js:92:3
at taskWrapper (D:\node_modules\undertaker\lib\set-task.js:13:15)
at bound (domain.js:396:14)
at runBound (domain.js:409:12)
at asyncRunner (D:\node_modules\async-done\index.js:55:18)
at process._tickCallback (internal/process/next_tick.js:61:11)
Process finished with exit code 1
The task code is as follows:
gulp.task('compile', function (callback) {
runSequence('comb', 'sass', 'minify', callback);
});
Separately, each task works correctly.