Chrome Extension

Gulp Error: Did you forget to signal async completion?

I am getting this error when running a task in Gulp. The version of Gulp is 4 and the related task code which is causing error is as below

gulp.task('get_react_app', function() {
    gulp.src(['folder/build/**/*'])
        .pipe(gulp.dest('./app'));
});
1 Answers

I think you have forgot to add return keyword before gulp.src, the correct code will be:

gulp.task('get_react_app', function() {
    return gulp.src(['folder/build/**/*'])
        .pipe(gulp.dest('./app'));
});
Search history ×