when I call this node.js file
var connect = require('connect');
var app = connect();
app.use(connect.static('public'));
app.listen(3000);
I immediately get
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 changes with the integrated modules?
If yes, how does it work then?