PhpStorm 8.0.3 Node.js Connect use() undefined function or method Wayne Rasmussen 创建于 2015年09月18日 01:13 PhpStorm 8.0.3 Node.js Connect use() undefined function or method. It seems to work but I am not getting the all is ok Green Box on the top right.
problem is caused by the way use(0 is defined in connect module:
var proto = {};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;
}
Such dynamically added properties can hardly be resolved during static analysis
Great answer. Thanks!