You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✔ Keystone server listening on port 3000
✖ Initialising Keystone instance
TypeError: Class constructor MongoStore cannot be invoked without 'new'
at Object.<anonymous> (/folder/project-using-keystone/index.js:18:44)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at executeDefaultServer (/folder/project-using-keystone/node_modules/@keystonejs/keystone/bin/utils.js:140:7)
error Command failed with exit code 1.
Additional context
It looks to me like the following code is the way to go, but it does not use express-session at all.
Bug report
Describe the bug
The following code example seems outdated:
from:
https://www.keystonejs.com/keystonejs/keystone/#sessionstore
It returns an error
Additional context
It looks to me like the following code is the way to go, but it does not use
express-session
at all.The text was updated successfully, but these errors were encountered: