when i call this node.js file
var connect = require('connect'); var app = connect(); app.use(connect.static('public')); app.listen(3000);
I get right away
app.use(connect.static('public')); ^ TypeError: Object function createServer() { function app(req, res, next){ app.handle(req, res, next); } merge(app, proto); merge(app, EventEmitter.prototype); app.route = '/'; app.stack = []; return app; } has no method 'static'
Using Connect 3.0.1, are there any changes in the integrated modules? If so, how does it work?
ohoservices
source share