Closed jihdeh closed 3 years ago
I'm having the same problem:
(node:5739) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
Package.json
"connect-mongodb-session": "^2.4.1",
"mongoose": "^5.12.3"
exports.initSession = function() { const store = new MongoDBStore({ uri: keys.DB_CONECT, collection: 'sessions' })
store.on('error', (error) => console.log(error))
return store; }
same error
at Object.<anonymous> (/dev/next-js/.../node_modules/connect-mongodb-session/node_modules/mongodb/lib/operations/operation.js:4:38)
This should be fixed in 3.0.0, this was a warning printed out with certain older versions of the MongoDB Node driver.
Hello,
I have this kind of weird error using connect-mongo-session:
Here's the code
Package.json
Thanks for the help.