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

启动app.js的时候,在connect-mongo.js里面报错了 #1

Open
nickgit opened this issue Aug 20, 2012 · 1 comment
Open

启动app.js的时候,在connect-mongo.js里面报错了 #1

nickgit opened this issue Aug 20, 2012 · 1 comment

Comments

@nickgit
Copy link

nickgit commented Aug 20, 2012

启动app.js的时候,在connect-mongo.js里面报错了.

TypeError:Can not read property 'Store' of undefined

module.exports = function(connect) {
var Store = connect.session.Store 在这里

mongodb我已经启动了, 还需要做什么样的配置吗

@meiosischen
Copy link

var MongoStore = require('connect-mongo');
改为
var MongoStore = require('connect-mongo')(express);

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