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

Fix bug recently introduced #24

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

maxwellmckinnon
Copy link
Contributor

Not sure if this is helpful or the right way to solve for all, but this is what I did to get things working again for me.

Otherwise the project errors on this out of the box.

Issue #23

app.js:76
    store: MongoStore.create({ mongoUrl: process.env.mongoURI }),
                      ^

TypeError: MongoStore.create is not a function

Steps to reproduce

git clone git@github.com:bradtraversy/storybooks.git .
fill in config.env details
npm install
npm run dev # or `npm start` hits the same issue

@maxwellmckinnon
Copy link
Contributor Author

Ah although this solves the issue, the better solution is probably @adilshaik updating the package lock. I see the big V4 changes in connect-mongo now.

@bradtraversy bradtraversy merged commit 095e164 into bradtraversy:master Jun 1, 2021
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

Successfully merging this pull request may close these issues.

2 participants