librelist archives

« back to archive

TypeError exceptions for underscore 1.4.0

TypeError exceptions for underscore 1.4.0

From:
Justin Clift
Date:
2012-09-30 @ 07:50
Hi all,

Found a small problem.  There's a recent release of the underscore
module, version 1.4.0.

If that gets installed (ie via npm install), then the console log
prints out TypeError exceptions endlessly, once every 2 seconds:

  ...
  [Sun Sep 30 2012 17:31:08 GMT+1000 (EST)] INFO Server (everything) is 
listening on port 8000
  [Sun Sep 30 2012 17:31:10 GMT+1000 (EST)] ERROR uncaughtException: 
TypeError: Cannot read property 'forEach' of undefined
  [Sun Sep 30 2012 17:31:12 GMT+1000 (EST)] ERROR uncaughtException: 
TypeError: Cannot read property 'forEach' of undefined
  [Sun Sep 30 2012 17:31:14 GMT+1000 (EST)] ERROR uncaughtException: 
TypeError: Cannot read property 'forEach' of undefined
  [Sun Sep 30 2012 17:31:16 GMT+1000 (EST)] ERROR uncaughtException: 
TypeError: Cannot read property 'forEach' of undefined

It happens for both 0.6.x and 0.8.x of Node.js, but I'm not sure
what the cause is.

As a workaround for now, I've submitted a pull request to force
older underscore:

  https://github.com/browserquest/BrowserQuest/pull/22

Haven't merged it yet, in case someone has the time/desire to
find out what the real problem is instead.  Hopefully it'll just
be something simple with our usage of underscore.

Regards and best wishes,

Justin Clift

--
Aeolus Community Manager
http://www.aeolusproject.org