Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error on node js while try to run a chat package

Tags:

node.js

I am new in node js. I am trying to run a package which I have downloaded from github: Mobile chat with Sencha Touch.
But when I tried to run the server js I found lots of packages missing. I have install those packages one by one. But now I got a strange error, please have a look.

root/node/mobile_chat/server.js:13
    Connect.conditionalGet(), // Add HTTP 304 responses to save even more bandwid
            ^
TypeError: Object function createServer() {
  function app(req, res, next){ app.handle(req, res, next); }
  utils.merge(app, proto);
  utils.merge(app, EventEmitter.prototype);
  app.route = '/';
  app.stack = [];
  for (var i = 0; i < arguments.length; ++i) {
    app.use(arguments[i]);
  }
  return app;
} has no method 'conditionalGet'
    at Object.<anonymous> (/root/node/mobile_chat/server.js:13:10)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Can anybody have any idea about that error.

Thanks in advance

like image 307
Amar Banerjee Avatar asked Nov 12 '22 22:11

Amar Banerjee


1 Answers

:) For the sake of answering this question: The package is over 3 years old stated by @joshua-anderson and you are getting the error because the newest connect version does not have the conditionalGet.

You have a better chance trying this package, not sure if it's something you are looking for. Looks similar: sencha-touch-chat (last commit 3 months ago)

Good luck with your nodejs adventures!

like image 130
GiveMeAllYourCats Avatar answered Nov 15 '22 07:11

GiveMeAllYourCats