senchalabs/connect — Issue #449: Examples problem: addListener only takes instances of Function
Author: nicerobot
Created: 2012-01-03 04:16:49+00:00
State: open

connect@1.8.5
node@0.4.7 and with node@0.6.6

Getting this error with the `bodyParser.js` and also `error.js` examples. It seems `http.Server` doesn't like `connect` objects passed in and requires they be functions.

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: addListener only takes instances of Function
at Server. (events.js:94:11)
at new Server (http.js:954:10)
at Object.Server (http.js:950:41)
at Object. (.../bodyParser.js:34:6)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array. (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)