Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gulp.series() not function when running multiple tasks

I am trying to run multiple gulp tasks one after another in synchronised fashion

but i got the following error

TypeError: gulp.series is not a function

Code

gulp.task('default',function () {
    gulp.watch('resources/assets/js/components/*.js', function() {
        gulp.series('scripts','compress');
    });
}) 
like image 413
Jabaa Avatar asked Sep 08 '26 10:09

Jabaa


1 Answers

If you want to use gulp.series and gulp.parallel you need gulp 4.0.

To get 4.+ which is technically in beta but has been around for a long time, use gulp v4

npm i [email protected]

Update 13 July 2020

Gulp v4 was released December 2018

npm i [email protected] --save-dev
like image 75
Kirill Matrosov Avatar answered Sep 11 '26 00:09

Kirill Matrosov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!