const MongoStore = require('connect-mongo')(session);
const URI = process.env.MONGO_URI;
const store = new MongoStore({ url: URI });
I received this error:
/home/runner/boilerplate-advancednode/node_modules/mongodb/lib/operations/db_ops.js:344
throw MongoError.create({
^
MongoError: database names cannot contain the character ‘.’
at Function.create (/home/runner/boilerplate-advancednode/node_modules/mongodb/lib/core/error.js:57:12)
it seems it’s a problem about “MongoStore” but my connection worked very well before using this “connect-mongo”
you can check out the project up to this point here.
I searched a lot everywhere to find a solution but I still couldn’t solve this problem.
I hope you can help me