Closed yairEO closed 8 years ago
What was the fix @yairEO ?
@bradodarb - The fix was to go back to v3 :)
@yairEO More in-depth analysis would be appreciated, since I'm having the same issue ;)
@voyti there's a great article about upgrading in our docs: https://www.liquidlight.co.uk/blog/article/how-do-i-update-to-gulp-4/
@phated All clear, thank you!
I got the same Error Message
with a simple task :
gulp.task( 'js', () => {
return gulp.src( 'src/**/*.js', { buffer : false } )
.pipe( cached( 'js' ) )
.pipe( pkg() )
.pipe( directive() )
.pipe( gulp.dest( 'output' ) );
} );
@NextSeason Have you found a solution? Having the same issue with similar simple task.
@NextSeason Ok, just found issue on my side in gulpfile.js
with one wrong task definition -> be sure your gulpfile.js
is all correct and all your tasks are written correctly!
I've tried again last night to change to Gulp 4, and again faced an hour of nightmare compatibility issues.
I managed to make it work, except gulp.watch
which won't work for some reason and the internet did not present any answer.
@lucien144 I did not find anyway to solve this problem and reversed to V3.
@yairEO @NextSeason Guys, can you post here your gulpfile.js
so we can check? I've got pretty complex gulpfile.coffee
and switch from v3 to v4 was (after some struggling :)) pretty ok.
@lucien144 There are several separate javascript files and some gulp tasks written by myself, every of them might cause this error, so it's too complex to paste all of them here. I don't want to check it again, so I can't waste others' time here to read my code line by line. Maybe I will refactor my code someday If version 3 cannot satisfy my requirement or for some reasons else.
These discussions belong on StackOverflow, not deep in a closed issue :frowning_face:
https://fettblog.eu/gulp-4-parallel-and-series/ because gulp.task(name, deps, func) was replaced by gulp.task(name, gulp.{series|parallel}(deps, func))
Thanks. I ran into this problem too, and ku3mich's link solved my problem. This is a documentation problem at this point; https://github.com/gulpjs/gulp/blob/master/docs/API.md is still describing v3's API.
I've updated my GULP to
v4
and i'm getting this error. Here's the log: