jrcryer / generator-mean

Yeoman generator for a MEAN stack, inspired by mean.io
MIT License
120 stars 25 forks source link

Express middleware error on grunt #17

Closed jonopus closed 10 years ago

jonopus commented 10 years ago

I'm getting this error on grunt

Error: Most middleware (like session) 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:\meanproject\node_modules\express\lib\express.js:89: 3) at module.exports (C:\meanproject\node_modules\connect-mongo\lib\connect-mongo.js:30:22) at Object. (C:\meanproject\config\express.js:6:42) 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 Module.require (module.js:364:17) at require (module.js:380:17) at Object. (C:\meanproject\server.js:41:1) [nodemon] app crashed - waiting for file changes before starting...

jrcryer commented 10 years ago

Thanks @jonopus - I'll take a look at this for you.

adambarthelson commented 10 years ago

same issue

jrcryer commented 10 years ago

Thanks for raising this - I've released a fix which now means this generator works with Express 4.

adambarthelson commented 10 years ago

:+1: