When I run npm start
in my p5js-web-editor repo. I get this error:
/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/server/server.js:44
var MongoStore = (0, _connectMongo["default"])(_expressSession["default"]);
^
TypeError: Class constructor MongoStore cannot be invoked without 'new'
at Object.<anonymous> (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/server/server.js:35:32)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Module._compile (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/node_modules/pirates/lib/index.js:117:24)
at Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Object.newLoader [as .js] (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/node_modules/pirates/lib/index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/index.js:18:3)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
[nodemon] app crashed - waiting for file changes before starting...
node-version :16.14.2