Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.open() failure due to wrong package dependencies. #17

Open
VashurkinAnton opened this issue Jan 18, 2018 · 1 comment
Open

client.open() failure due to wrong package dependencies. #17

VashurkinAnton opened this issue Jan 18, 2018 · 1 comment

Comments

@VashurkinAnton
Copy link

VashurkinAnton commented Jan 18, 2018

Right now dependence "mongodb" used as "*". And because of this when mongodb was release v3.x with breaking API changes, this programm going not work. And we have next eror:

TypeError: client.open is not a function
    at module.exports (path-to-project/node_modules/mongo-watch/lib/connect.coffee:22:10)
    at module.exports (path-to-project/node_modules/mongo-watch/lib/getOplogStream.coffee:5:3)
    at new MongoWatch (path-to-project/node_modules/mongo-watch/lib/main.coffee:34:5)
    at Object.<anonymous> (path-to-project/lib/db.js:408:21)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (path-to-project/api-server.js:17:10)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3
VashurkinAnton added a commit to inleadmedia/mongo-watch that referenced this issue Jan 18, 2018
@sdetweil
Copy link

could u change the title to include info on the client.open() failure.. that way it might appear in a search..

i came to the same solution on my own after 2 days...

@VashurkinAnton VashurkinAnton changed the title Wrong package dependencies. client.open() failure due to wrong package dependencies. Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants