shokai / hubot-rss-reader

RSS Reader on Hubot
https://www.npmjs.org/package/hubot-rss-reader
63 stars 26 forks source link

Error: Object has no method 'then' at run #19

Closed colindean closed 9 years ago

colindean commented 10 years ago

Found while trying to address #18 once again.

This error shows in my log just a few seconds after I start hubot.

[Sat Nov 15 2014 20:10:11 GMT-0500 (EST)] ERROR TypeError: Object #<Object> has no method 'then'
  at run (/Users/colin/Source/metamesh/hubot/node_modules/hubot-rss-reader/scripts/hubot-rss-reader.coffee:32:7, <js>:27:35)
  at [object Object]._onTimeout (/Users/colin/Source/metamesh/hubot/node_modules/hubot-rss-reader/scripts/hubot-rss-reader.coffee:41:5, <js>:36:14)
  at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
shokai commented 9 years ago

please install coffee-script 1.8.x

colindean commented 9 years ago

Can I do that when Hubot HEAD depends on 1.6.3? Or do I need to fork my own copy of hubot base and change that?

shokai commented 9 years ago

coffee-script 1.8.0 is upward compatible with 1.6.3. I'm using 1.8.0 in my hubot.

colindean commented 9 years ago

How? I'm on Heroku.

shokai commented 9 years ago

run

% npm install coffee-script@">=1.8.0" -save

or, edit package.json like this https://github.com/masuilab/slack-hubot/blob/master/package.json#L29