question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error - "Task function must be specified"

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

28reactions
yairEOcommented, Jun 17, 2016

@bradodarb - The fix was to go back to v3 😃

8reactions
ku3michcommented, Jul 10, 2017

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))

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found