0

I Tried to run below gulp script in gulp4 but it is worked in gulp3.

gulp.task('task2', gulp.series('task1', async function () {
    await new Promise((resolve) => {
        gulp.src('/folder/file.md')
            .pipe(gulp.dest('docs/javascript'))
            .on("end", resolve);
    });
    shelljs.rm('-rf', 'temp');
}));

Now i ran into below error in gulp4 while building the dependecies,

The following tasks did not complete: task5
Did you forget to signal async completion?
npm ERR! code ELIFECYCLE

Here gulp.series('task1') was previously like parameter type such as['task1'].

Did gulp series won't work in async function. am newbie to this gulp4 but not sure where the changes throwing error and gulp task mentioned in error(task5) is some other one. Any one please help me to solve this?

Mister X
  • 3,406
  • 3
  • 31
  • 72

0 Answers0