'Failed to lift app: Error: Encountered error attempting to instantiate a session store using the installed version of `connect-mongo`

Trying to run my app through a localhost server but a few days ago this error message showed up out of nowhere. I'm using Sails.js with version ^1.3.2 for connect-mongo along with version ^1.2.0 for sails-mongo. My sessions.js file looks like the following -

secret: process.env.Mongodb_secret,

  adapter: 'connect-mongo',

  url: "mongodb://admin-user:[email protected]:27017,cluster0-shard-00-01.4c6tq.mongodb.net:27017,cluster0-shard-00-02.4c6tq.mongodb.net:27017/MyDB?ssl=true&replicaSet=atlas-11ei1d-shard-0&authSource=admin&retryWrites=true&w=majority",

Am I using an outdated version of connect-mongo? Has anyone run into a similar problem or know a discussion thread that has discussed something similar? Please let me know if additional information is needed. Thanks to anyone who helps out in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source