bitpay / bitcore-lib

A pure and powerful JavaScript Bitcoin library
https://bitcore.io/
Other
611 stars 1.03k forks source link

Error: More than one instance of bitcore-lib found #278

Open Leon-Zhang opened 5 years ago

Leon-Zhang commented 5 years ago

If I import bitcore-lib or bitcore-explorers or bitcore-mnemonic at same time, it will have following error,

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.

I found it is because they are referring to different version of bitcore-lib, like +-- bitcore-explorers@1.0.1 | +-- bitcore-lib@0.13.19 +-- bitcore-lib@0.16.0

any simple way to fix this?

matiu commented 5 years ago

Bitcore-explorers is not longer been maintained. It will be removed soon. Please do not use it. Sorry, we need to update docs.

On Sun, Dec 23, 2018, 11:01 AM Leon-Zhang <notifications@github.com wrote:

If I import bitcore-lib or bitcore-explorers or bitcore-mnemonic at same time, it will have following error,

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.

I found it is because they are referring to different version of bitcore-lib, like +-- bitcore-explorers@1.0.1 | +-- bitcore-lib@0.13.19 +-- bitcore-lib@0.16.0

any simple way to fix this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitpay/bitcore-lib/issues/278, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGCHD0aqi4OUAqD3FAsAmi__YbpiJjTks5u74yzgaJpZM4Zf2c6 .

Leon-Zhang commented 5 years ago

Bitcore-explorers is not longer been maintained. It will be removed soon. Please do not use it. Sorry, we need to update docs. On Sun, Dec 23, 2018, 11:01 AM Leon-Zhang @. wrote: If I import bitcore-lib or bitcore-explorers or bitcore-mnemonic at same time, it will have following error, 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. I found it is because they are referring to different version of bitcore-lib, like +-- @. | +-- @. +-- @. any simple way to fix this? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#278>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGCHD0aqi4OUAqD3FAsAmi__YbpiJjTks5u74yzgaJpZM4Zf2c6 .

Thanks for answer. So beside bitcore-explorers, how I can get address balance?