Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError('"listener" argument must be a function'); #599

Closed
lindehoff opened this issue Mar 15, 2017 · 1 comment
Closed

TypeError('"listener" argument must be a function'); #599

lindehoff opened this issue Mar 15, 2017 · 1 comment

Comments

@lindehoff
Copy link

I have use this module before and it has worked, but now when I try it on a new machine I get this error:

events.js:307
    throw new TypeError('"listener" argument must be a function');
    ^

TypeError: "listener" argument must be a function
    at Socket.once (events.js:307:11)
    at Socket.connect (net.js:943:10)
    at Connection.connect (node_modules/imap/lib/Connection.js:286:10)
    at Object.<anonymous> (imap-test.js:60:6)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)

I have tried with the example code from the README

@lindehoff
Copy link
Author

This was a bug on Node 7.7.2, nodejs/node#11762
Should be fixed in 7.7.3

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant