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
:) 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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With