-
Notifications
You must be signed in to change notification settings - Fork 892
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
npm run dev and npm start both fail on TypeError: MongoStore.create is not a function #23
Comments
"connect-mongo": "^3.2.0", is in package.json. So it's not a versioning difference from the known good repo issue. |
It looks like it should be MONGO_URI for one thing. But it still doesn't fix the .create is not a function issue. Weird because this looks like the example code using MongoStore.create on their docs. I'm a web noobie and first time javascript / everything else in the web stack so trying to wrestle through this. Great tutorial btw. I commented out the entire store line and have the piece working I'm interested in though (the oauth). |
@adilshaik Your recent change a few days ago is what broke it for me: f5fd013 If I use the version of the code before this change, the blocking error goes away and everything seems to work. |
I see, you just need to update the packages lock. @adilshaik |
@maxwellmckinnon As you said to revert the code, I suggest you rather than changing the connect-mongo version of @bradtraversy 's 'package.json', change the code accordingly. @bradtraversy code of connect-mongo doesn't work for the version greater than 4.0.0. I suggest @bradtraversy to merge the #22 |
To be clear, the merge of #22 is what caused the break. It's a good change, it just needs to include the necessary package updates it needs, test it all out with a fresh git clone and npm install, then make a PR if it works. |
//in app.js //remove this : //remove this : //add this : |
Steps to reproduce
The text was updated successfully, but these errors were encountered: