gulp-useref icon indicating copy to clipboard operation
gulp-useref copied to clipboard

G4 error, Did you forget to signal async completion?

Open azerafati opened this issue 7 years ago • 1 comments

I just switched to Gulp version 4, everything works fine except my useref task giving me error:

The following tasks did not complete:  dependencies-admin
 Did you forget to signal async completion?

If I remove the useref pipe it works perfectly fine

gulp.task('dependencies-admin', function (done) {

    return gulp.src(['app/view/admin/admin-index.php'], {base: '.'})

        .pipe(useref({searchPath: '.'}))    // if I comment this line  the error goes away

        .pipe(gulp.dest(destination));

});

for some reason useref is not signalling the end of it's task? have you tested it with G4? Am I missing something here?

azerafati avatar Jun 16 '18 06:06 azerafati

I think you either need to call done or don't pass it in. What happens if you try that?

jonkemp avatar Jun 19 '18 02:06 jonkemp