undefined is not a function #30

Open
drkonafa opened this Issue Oct 3, 2013 · 4 comments

Comments

Projects
None yet
3 participants
@drkonafa

drkonafa commented Oct 3, 2013

blank app and used the code example. always getting
undefined is not a function

/Applications/MAMP/htdocs/mail/node_modules/mail-listener/dist/mail.listener.js:24
this.imap = new ImapConnection({
^
TypeError: undefined is not a function
at new MailListener (/Applications/MAMP/htdocs/mail/node_modules/mail-listener/dist/mail.listener.js:24:19)
at Object. (/Applications/MAMP/htdocs/mail/app.js:3:20)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)

@WA9ACE

This comment has been minimized.

Show comment
Hide comment
@WA9ACE

WA9ACE Oct 3, 2013

Same happening here. I thought it was just me.

WA9ACE commented Oct 3, 2013

Same happening here. I thought it was just me.

@drkonafa

This comment has been minimized.

Show comment
Hide comment
@drkonafa

drkonafa Oct 3, 2013

Aha! please post solution here if you solve it.

drkonafa commented Oct 3, 2013

Aha! please post solution here if you solve it.

@drkonafa

This comment has been minimized.

Show comment
Hide comment
@drkonafa

drkonafa Oct 4, 2013

It's about node imap library.
the newest library has var Imap = require('imap') instead of require("imap").ImapConnection;

That overcame that specific error but still doesn't work..with no error messages in console.

drkonafa commented Oct 4, 2013

It's about node imap library.
the newest library has var Imap = require('imap') instead of require("imap").ImapConnection;

That overcame that specific error but still doesn't work..with no error messages in console.

@chirag04

This comment has been minimized.

Show comment
Hide comment
@chirag04

chirag04 Oct 4, 2013

Contributor

Yeah node-imap changed.

I rewrote this lib. Check https://github.com/chirag04/mail-listener2

Contributor

chirag04 commented Oct 4, 2013

Yeah node-imap changed.

I rewrote this lib. Check https://github.com/chirag04/mail-listener2

@gerbenk gerbenk referenced this issue in matteoagosti/hubot-mail-notifier Aug 18, 2015

Open

Error attempting to run this plugin. #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment