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.

TypeError: wrapAsync(...) is not a function with node 8.0.0

See original GitHub issue

What version of async are you using?

2.4.1

Which environment did the issue occur in (Node version/browser version)

node 8.0.0

What did you do? Please include a minimal reproducable case illustrating issue.

async=require('async')
_=require('underscore')
async.parallel(_.range(10), function(iter, cb) { cb(null); }, function(err) { console.log(err); })

What did you expect to happen?

should print null.

What was the actual result?

TypeError: wrapAsync(...) is not a function
    at /usr/local/lib/node_modules/async/dist/async.js:3830:24
    at eachOfArrayLike (/usr/local/lib/node_modules/async/dist/async.js:1003:9)
    at eachOf (/usr/local/lib/node_modules/async/dist/async.js:1051:5)
    at _parallel (/usr/local/lib/node_modules/async/dist/async.js:3829:5)
    at Object.parallelLimit [as parallel] (/usr/local/lib/node_modules/async/dist/async.js:3912:5)
    at repl:1:7
    at ContextifyScript.Script.runInThisContext (vm.js:44:33)
    at REPLServer.defaultEval (repl.js:239:29)
    at bound (domain.js:301:14)
    at REPLServer.runBound [as eval] (domain.js:314:12)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

43reactions
TheRationalizercommented, Aug 27, 2017

“Oops, my mistake” - That helped me solve the problem too, thanks for elaborating.

23reactions
tlbtlbtlbcommented, Jun 11, 2017

Oops, my mistake.

Read more comments on GitHub >

github_iconTop Results From Across the Web

wrapAsync(...) is not a function in MongoDB and Mongoose
What I want is, to execute both these queries and send responses of queries together as combined JSON. but, I am getting error...
Read more >
Node.js v19.3.0 Documentation
The wrapper function is expected to be called exactly exact times. If the function has not been called exactly exact times when tracker.verify()...
Read more >
Another wrapAsync Problem + Question - help - Meteor forums
I get the error : "Exception while invoking method 'getTweets' TypeError: this.request is not a function" Meteor.method…
Read more >
Callback and Promise Support in your Node.js Modules
Return callbacks as well as promises from your functions to be both, backward-compatible and future proof! Update — December 20th 2017. We've ...
Read more >
Mongoose and node js - TypeError: object is not a function ...
Coding example for the question Mongoose and node js - TypeError: object is not a function-node.js.
Read more >

github_iconTop Related Medium Post

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