martindale / snarl

Simple, extensible chatbot platform, supports Slack, Discord, and Matrix (with more to come).
https://grove.chat
14 stars 22 forks source link

Error Most middleware (like bodyparser) #51

Closed blackvampire231 closed 6 years ago

blackvampire231 commented 10 years ago

whenever i try and run the bot.js this error comes up

Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware. at Function.Object.defineProperty.get (C:\snarl-master\node_modules\express\lib\express.js:89:13) at Object. (C:\snarl-master\bot.js:109:17) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3

idk what to do and would appreciate a little help thanks

lauriys commented 10 years ago

dude, this project is dead On 4 Jun 2014 01:08, "blackvampire231" notifications@github.com wrote:

whenever i try and run the bot.js this error comes up

Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware. at Function.Object.defineProperty.get (C:\snarl-master\node_modules\express\lib\express.js:89:13) at Object. (C:\snarl-master\bot.js:109:17) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3

idk what to do and would appreciate a little help thanks

— Reply to this email directly or view it on GitHub https://github.com/martindale/snarl/issues/51.

blackvampire231 commented 10 years ago

well crap

martindale commented 10 years ago

not dead, just no longer relevant -- turntable.fm no longer exists, so we moved on and built soundtrack.io.

This issue is because you have Express 4 installed (the latest version), but the version we were using was either Express 2 or 3. If you still want to try running this, try npm install express@3.

chinseone commented 10 years ago

I ran into same issue with Express 4. You can try solve this by

  1. Install body-parser via 'npm install body-parser'
  2. Include module by 'var bodyParser = require('body-parser');'
  3. Add 'app.use(bodyParser());'
lauriys commented 10 years ago

dude, this project is no longer relevant On Oct 13, 2014 9:04 AM, "Li Cheng" notifications@github.com wrote:

I ran into same issue with Express 4. You can try solve this by

  1. Install body-parser via 'npm install body-parser'
  2. Include module by 'var bodyParser = require('body-parser');'
  3. Add 'app.use(bodyParser());'

— Reply to this email directly or view it on GitHub https://github.com/martindale/snarl/issues/51#issuecomment-58853571.

cismanish commented 8 years ago

Not working for me, Can you please help to resolve this issue

martindale commented 8 years ago

Sure, @chinseone! What error are you getting currently?

martindale commented 6 years ago

Resolved with #73. Please open a new issue if you run into a problem!