jonkemp / jonkemp/gulp-useref

G4 error, Did you forget to signal async completion?

Open
#252 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
700
Forks
89
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.