Error - "Task function must be specified"
See original GitHub issueI’ve updated my GULP to v4
and i’m getting this error. Here’s the log:
C:\xampp\htdocs\project>gulp
assert.js:89
throw new assert.AssertionError({
^
AssertionError: Task function must be specified
at Gulp.set [as _setTask] (C:\xampp\htdocs\project\node_modules\gulp\node_modules\undertaker\lib\set-task.js:12:3)
at Gulp.task (C:\xampp\htdocs\project\node_modules\gulp\node_modules\undertaker\lib\task.js:13:8)
at Object.<anonymous> (C:\xampp\htdocs\project\gulpfile.js:47:6)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Liftoff.handleArguments (C:\Users\vsync\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:116:3)
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Everytime I run gulp anything, I get a assertion error.
The problem is that you are using gulp 4 and the syntax in gulfile.js is ... AssertionError [ERR_ASSERTION]: Task function must be specified ......
Read more >Task function must be specified at Gulp.set - SitePoint
hello I am trying to concatenate CSS Files; I am facing this problem when I am using this script (Please note that I...
Read more >Gulp v4: Task function must be specified - Ionic Forum
I'm facing gulp 4 issue Task function must be specified Node version: 12.9.1 NPM: ... scss/ionic.app.scss') .pipe(sass()) .on('error', sass.
Read more >Elixir and gulp error - Laracasts
gulp assert.js:350 throw err; ^ AssertionError [ERR_ASSERTION]: Task function must be specified at Gulp.set [as _setTask] ...
Read more >Async Completion - gulp.js
If nothing is returned from your task, you must use the error-first callback to signal completion. The callback will be passed to your...
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
@bradodarb - The fix was to go back to v3 😃
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))