Warning on Connecting to MongoDB with a Node server

后端 未结 5 1436
有刺的猬
有刺的猬 2021-02-01 03:16

Connecting with MongoDB native driver

I wrote following code to connect mongodb through native driver which has been install with npm install mongodb --save

5条回答
  •  [愿得一人]
    2021-02-01 03:48

    I want to add to this thread that it may also have to do with other dependencies.

    For instance, nothing I updated or set for NodeJS, MongoDB or Mongoose were the issue - however - connect-mongodb-session had been updated and starting slinging the same error. The solution, in this case, was to simply rollback the version of connect-mongodb-session from version 2.3.0 to 2.2.0.

    UPDATE: The issue is now fixed in connect-mongodb-session@2.3.1.

提交回复
热议问题