The "url" argument must be of type string. Received undefined
dman777 opened this issue · comments
Useless typescript creates more issues
app.use(session({
store: MongoStore.create({ mongoUrl: 'mongodb://localhost/test-app' })
}));
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:119:11)
at Url.parse (node:url:169:3)
at Object.urlParse [as parse] (node:url:156:13)
at module.exports (/home/two/gitlab/safari-back-end/node_modules/mongodb/lib/url_parser.js:13:23)
at connect (/home/two/gitlab/safari-back-end/node_modules/mongodb/lib/mongo_client.js:485:3)
% cat node_modules/connect-mongo/package.json
{
"name": "connect-mongo",
"version": "4.5.0",
Node ver 16.*