Advanced Node and Express - Authentication With SocketIO

Issue: Outdated connect-mongo methods.

Solution: Downgrade connect-mongo to ^3.2.0.

Error:

/home/runner/boilerplate-advancednode-1/server.js:17
const MongoStore = require('connect-mongo')(session);
                                           ^

TypeError: require(...) is not a function
    at Object.<anonymous> (/home/runner/boilerplate-advancednode-1/server.js:17:44)

More information on the GitHub Issue: Advanced Node and Express - Package Versioning · Issue #39521 · freeCodeCamp/freeCodeCamp (github.com)

Challenge with issue: Advanced Node and Express - Authentication with Socket.IO | Learn | freeCodeCamp.org

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.