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'));
});
I think you have forgot to add return keyword before gulp.src, the correct code will be: