Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

after recent commit in mongodb module, the loopback-component-storage-mongo does not work anymore #10

@raghav135

Description

@raghav135

After this commit:
mongodb/node-mongodb-native@39102e1

We are getting below issue:

$ node .
Connection fails: { MongoError: option host is not supported
at validOptions (/home/rsr/work/ev-foundation/node_modules/mongodb/lib/mongo_client.js:50:14)
at Function.MongoClient.connect (/home/rsr/work/ev-foundation/node_modules/mongodb/lib/mongo_client.js:194:13)
at MongoStorage.connect (/home/rsr/work/ev-foundation/node_modules/loopback-component-storage-mongo/lib/index.js:53:34)
at Object.exports.initialize (/home/rsr/work/ev-foundation/node_modules/loopback-component-storage-mongo/lib/index.js:559:26)

I feel the best fix can be to change the package.json dependency of mongodb to 2.2.22 , request your help for quick fix : )

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