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...
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...