Skip to content

Ch13: Cannot read property 'Store' of undefined #108

@yejia4869

Description

@yejia4869

Hi Ethan

The book is very easily to understand and attracts me to learn deeply.
but I stuck in ch13 by the following error:

../meadowlark/node_modules/session-mongoose/index.js:266
})(connect.session.Store);
....................^
TypeError: Cannot read property 'Store' of undefined

Initially, I thought it was the problem of "session-mongoose", so I searched this package on npmjs website and
found this:

IMPORTANT: This module currently supports legacy versions of connect (2.x) and express (2.x and 3.x) due to extensive changes made to those modules.
Until support for latest modules are added, this module should not be used with latest versions of connect and express.

However, when I managed to install [email protected] in my project, I found the [email protected] series is deprecated. It got me...

Am I missing something? Any way to improve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions