I'm doing the instructions for connectserver.
js. However, when I run "node connectserver.
js" I get the error:
Code:
TypeError: Object function createServer() {
function app(req, res){ app.handle(req, res); }
utils.merge(app, proto);
utils.merge(app, EventEmitter.prototype);
app.route = '/';
app.stack = [];
for (var i = 0; i < arguments.length; ++i) {
app.use(arguments[i]);
}
return app;
} has no method 'router'
If I set up connectserver.
js similar to the answer post
on this stackoverflow question, it runs correctly. Does the code need to be changed to reflect an updated connect API?