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

Error attempting to run this plugin. #2

Open
jjasghar opened this issue Nov 25, 2014 · 1 comment
Open

Error attempting to run this plugin. #2

jjasghar opened this issue Nov 25, 2014 · 1 comment

Comments

@jjasghar
Copy link

I'm attempting to walk through this and i'm getting this error starting up bin/hubot.

[Tue Nov 25 2014 16:58:55 GMT-0600 (CST)] ERROR Error loading scripts from npm package - TypeError: undefined is not a function
  at new MailListener (/Users/jasghar/repo/openstack-chef-bot/node_modules/hubot-mail-notifier/node_modules/mail-listener/dist/mail.listener.js:24:19)
  at module.exports (/Users/jasghar/repo/openstack-chef-bot/node_modules/hubot-mail-notifier/src/mail-notifier.coffee:47:3, <js>:53:20)
  at Robot.loadExternalScripts (/Users/jasghar/repo/openstack-chef-bot/node_modules/hubot/src/robot.coffee:256:11, <js>:208:39)
  at /Users/jasghar/repo/openstack-chef-bot/node_modules/hubot/bin/hubot:113:13, <js>:122:28
  at fs.js:271:14
  at Object.oncomplete (fs.js:107:15)

It looks like it doesnt like how this line: https://github.com/matteoagosti/hubot-mail-notifier/blob/master/src/mail-notifier.coffee#L47
Can't seem to create the config object?

Any suggestions on what i can to do to fix this? Thanks in advance!

@gerbenk
Copy link

gerbenk commented Aug 18, 2015

The cause is a deprecated field in the Imap Library. mail-listener was updated to mail-listener2 to fix this. See:
circuithub/mail-listener#30

I also had to change hubot-mail-notifier a bit and change "mail:parsed" to just "mail".

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

2 participants