So yea, I got stuck. I even decided to simply copy server.js file provided by you guys on GitHub Gist, but I get
const MongoStore = require(‘connect-mongo’)(session);
^
TypeError: Class constructor MongoStore cannot be invoked without ‘new’
I’ll try to solve this myself of course, but you should look into it.
All dependencies were installed directly from Repl.it, so maybe there’re some issue with newer versions of some of them…
We are trying to make sure there are no weird bugs in this, and thought we had resolved this issue. So, would you mind elaborating on what you experienced during this challenge?
It worked for me, after I downgraded connect-mongo to npm i connect-mongo@3, it worked fine and the above error disappeared, and sessions was running fine on Mongodb