Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect has no method "static" #3

Open
ismyrnow opened this issue Oct 21, 2014 · 3 comments
Open

Connect has no method "static" #3

ismyrnow opened this issue Oct 21, 2014 · 3 comments

Comments

@ismyrnow
Copy link

I get the following error when I try to run the proxy:

C:\...\node_modules\istanbul-proxy\lib\istanbul-proxy.js:190
        staticServer = connect.static(reportDir);
                                     ^
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'

Your package.json specifies using the latest version of various dependencies, and I don't think connect ships with the static middleware any longer. Those dependencies should be tied down to a major version, at least.

@ismyrnow
Copy link
Author

P.s. I know this is an old project, so I'm not relying on this at all. However, the project is on NPM and it doesn't run, so I figured you would want to know.

@lenntt
Copy link

lenntt commented Sep 2, 2016

I can confirm this, same thing in linux.

@lenntt
Copy link

lenntt commented Sep 6, 2016

PR #4 would solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants