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

More than one instance of bitcore-lib found. Please make sure to... #45

Open
stefek99 opened this issue Nov 15, 2017 · 2 comments
Open

Comments

@stefek99
Copy link

Uncaught Error: More than one instance of bitcore-lib found. Please make sure to require bitcore-lib and check that submodules do not also include their own bitcore-lib dependency.
    at Object.bitcore.versionGuard (index.js:12)
    at Object.<anonymous> (index.js:15)
    at Object.106../lib/address (index.js:70)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.<anonymous> (mnemonic.js:3)
    at Object.97../errors (mnemonic.js:298)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.95../lib/mnemonic (index.js:1)

bitpay/bitcore-wallet-service#643
bitpay/bitcore#1457
bitpay/bitcore#1366
bitpay/bitcore#1454

Here is something like look like a hacky solution: bitpay/bitcore#1454 (comment)

If you have capacity - maybe you'll find a better way to fix.

@usab
Copy link

usab commented Dec 12, 2017

I have the same problem. How to fix this?

@neohq
Copy link

neohq commented Mar 3, 2018

You have another package that has "bitcore-lib" as submodule, I've found it inside "bitcore-node" and "bitcore".

Uninstall the "bitcore-lib" and use the one inside the other packages like this :

let bitcoreLib = require('bitcore-node/node_modules/bitcore-lib')

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

3 participants