Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: req.flash() requires sessions #28

Open
anu-priya opened this issue Oct 6, 2015 · 1 comment
Open

Error: req.flash() requires sessions #28

anu-priya opened this issue Oct 6, 2015 · 1 comment

Comments

@anu-priya
Copy link

I am getting the below error when open "login" link

Error: req.flash() requires sessions
at Error (native)
at IncomingMessage._flash [as flash](c:UsersxxxDesktopMEAN Stackshoppingnode_modulesconnect-flashlibflash.js:60:41)
at Object.handle (c:\Users\xxx\Desktop\MEAN Stack\shopping\app\routes.js:14:48)
at next_layer (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\route.js:103:13)
at Route.dispatch (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\route.js:107:5)
at c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:195:24
at Function.proto.process_params (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:251:12)
at next (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:189:19)
at next (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:166:38)
at Layer.handle (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\connect-flash\lib\flash.js:21:5)
at trim_prefix (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:226:17)
at c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:198:9
at Function.proto.process_params (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:251:12)
at Context.next (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\express\lib\router\index.js:189:19)
at Context.actions.pass (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\passport\lib\passport\context\http\actions.js:77:8)
at SessionStrategy.authenticate (c:\Users\xxx\Desktop\MEAN Stack\shopping\node_modules\passport\lib\passport\strategies\session.js:67:10)

Kindly do the needful ASAP

Thanks in Advance

@0x1211
Copy link
Contributor

0x1211 commented Sep 30, 2016

@anu-priya Couldn't reproduce your bug. It works perfectly here. Try updating your dependancy and give some fresh news ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants