mail-listener
mail-listener copied to clipboard
undefined is not a function
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.
Same happening here. I thought it was just me.
Aha! please post solution here if you solve it.
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.
Yeah node-imap changed.
I rewrote this lib. Check https://github.com/chirag04/mail-listener2