Error: connectionstrategy not found

  node.js, question
var session = require("express-session");
 const MongoStore = require("connect-mongo")(session);
 app.use(session({
 store: new MongoStore({
 url:"mongodb://516fc3a8-ad11-4756-83e7-f87e5be83320:CC3sD-NW1y5tNy8fZFpHWA@192.168.3.8:27017/db22fba1-9f9f-415e-8f39-e1da8affca4c"
 })
 }));
 -----------------------------------------------
 if (process.env.VCAP_SERVICES) {
 var mysql_config = JSON.parse(process.env.VCAP_SERVICES).mysql[0].credentials;
 db_config.host = mysql_config.hostname;
 db_config.port = mysql_config.port;
 db_config.user = mysql_config.username;
 db_config.password = mysql_config.password;
 db_config.database = mysql_config.name;
 bracket
 Var dbUrl = 'mongodb://' plus db _ config.useplus':' plus db_config.password plus' @' plus db_config.use plus':' plus db_config.port plus'/'plus db_config.database
 mongoose.connect(dbUrl);
 ---------------------

I used it
connect-mongo 1.0.2

express-session 1.13.0

clipboard.png

The great gods solve? ? ? ? After trying many online methods, the error still remains: connectionstrategy not found.

(use “connect-mongo”: “~1.0.2”,)
app.use(session({
secret: ‘myblog’,
key: db_config.module.database,//cookie name
cookie: {maxAge: 100060602430},//30 days
resave: false,
saveUninitialized: true,
store: new MongoStore({

Url: db_config.module.dbUrl // here is the uri of coding connection information

})
})); (ps: But there are still doubts that the same code has been wrong in coding’s other account. )