ITADN

Session: Cannot read properties of undefined (reading 'session')

#94Closedjoshamaju 创建于 2023-09-10
bug
J
joshamajucommented
The session module throws `TypeError: Cannot read properties of undefined (reading 'session')` at point of registering the middleware ```ts app.use( session({ // Session store store: new SimpleCookieStore(), // Default session data when a new session is created. // It can be a function. // It is shallow cloned, if you need a deep clone, use a function. defaultSessionData: {}, }) ); ``` [Reproduction](https://github.com/joshamaju/hattip-session)
关闭于 2023-09-10 2 条评论