/home/siddeshwar/dev/my_shop_app /node_modules/connect-mongodb-session/index.js:55
this._emitter = new EventEmitter();
^
TypeError: Cannot set property '_emitter' of undefined
at MongoDBStore (/home/siddeshwar/dev/my_shop_app /node_modules/connect-mongodb-session/index.js:55:19)
at Object.<anonymous> (/home/siddeshwar/dev/my_shop_app /app.js:19:15)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
[nodemon] app crashed - waiting for file changes before starting...
Hi, I am getting a very odd error from the package. Here is a snippet of my code
When I run the code. I get the following error:
These are the versions used in
package.json
And I am using node version
v10.20.1
. Please help me to solve this problem.