0

I get the following error when trying to start a node server. It looks like it is related to combohandler that was installed using node package manager (npm).

Can anyone help please?

TypeError: Object function app(req, res){ app.handle(req, res); } has no method 'error'
    at /Repository/combo/node_modules/combohandler/lib/server.js:23:9
    at Object.<anonymous> (/Repository/combo/server.js:8:7)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)

Below you can see the version of express I am using:

Brendans-MacBook-Pro:combo brendan_rice$ npm view express version
npm WARN [email protected] package.json: 'modules' object is deprecated
npm WARN [email protected] package.json: 'modules' object is deprecated
npm WARN [email protected] package.json: 'modules' object is deprecated
npm WARN [email protected] package.json: 'modules' object is deprecated
3.0.0rc1
3
  • 1
    Are you using the express module? Which version? Commented Aug 3, 2012 at 10:04
  • Yea I am using express, I have put the details in the main post. What you thinking Marc? Exress version conflict? Commented Aug 3, 2012 at 10:11
  • yes, express version conflict, see answer of penartur Commented Aug 3, 2012 at 12:57

1 Answer 1

1

combohandler does not support express v3.0.0: https://github.com/rgrove/combohandler/blob/master/package.json

You could probably workaround the error by not creating an express server manually but rather by letting combohandler to take care of it. That is, do not pass the second argument to the combohandler constructor.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks penartur, that was exactly the problem, I installed an earlier version of express and it worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.