node.js - TypeError('app.use() requires middleware functions') in session in express js -
while using session in express js, getting following error.
app.use(cookieparser()); app.use(session({secret:'xyz'})); typeerror: app.use() requires middleware functions @ eventemitter.use (d:\lms-node\node_modules\express\lib\application.js:210:11)
Comments
Post a Comment