gulp 4 cannot find gulp.parallel | gulp.series
See original GitHub issueI use gulp 4, and there is an error showing “gulp.parallel is not a function”.
I am here. @mikestreety
gulp -v
show
CLI version 1.2.1
Local version 3.9.1
This is my gulpfile, I delete some code and these code will cause the same result.
var fs = require('fs');
var _path = require('path');
var gulp = require('gulp')
var newer = require('gulp-newer');
var modify = require('gulp-modify');
var uglify = require('gulp-uglify')
var cleanCSS = require('gulp-clean-css');
var htmlmin = require('gulp-htmlmin');
var imagemin = require('gulp-imagemin');
gulp.task('default', gulp.parallel(function () {
console.log('finish')
}))
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Gulp 4: How to use gulp.series() and gulp.parallel() inside ...
I want to define a Gulp 4 task that is a composition of three functions executed in series. However, I want to define...
Read more >series()
When no tasks are passed, throws an error with the message, "One or more tasks should be combined using series or parallel".
Read more >02 - Introduction to Gulp.js series and parallel tasks - Gulp 4
Gulpjs series where I go over the basic content:⦾ intro ⦾ gulp tasks ( series & parallel )⦾ compiling SCSS⦾ cleaning/minifying CSS⦾ ...
Read more >The new task execution system - gulp.parallel and gulp.series
One of the major changes in Gulp 4 is the new task execution system. In this article, I want to show you what's...
Read more >A quick guide for switching to gulp 4 | by Jhey Tompkins
The majority are non-breaking. The major breaking change is the introduction of gulp.series and gulp.parallel. For those in camp TL;DR…
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
$ npm install --save-dev gulp
…will get you 3.9.1$ npm install gulpjs/gulp.git#4.0 --save-dev
…did not work for me (zsh: no matches found), I had to write it in quotes:$ npm install 'gulpjs/gulp.git#4.0' --save-dev
…so you’ll get 4.0.alphaWhy don’t publish a 4.0-alpha version in npm?