bitcore-explorers icon indicating copy to clipboard operation
bitcore-explorers copied to clipboard

Unable to install alongside recent versions of bitcore-lib

Open ghost opened this issue 7 years ago • 4 comments

It appears that bitcore-explorers is using an older version of bitcore-lib and isn't able to function nicely in projects using the most recent version of bitcore-lib. If your project uses the latest version bitcore-lib and bitcore-explorers as a dependency you will get the 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.

It appears that npm is installing an older version of bitcore-lib under ./node_modules/bitcore-explorers/node_modules based on the dependencies for bitcore-explorers. A temporary solution is to just delete that folder but if you do anything using npm it will reinstall it.

ghost avatar Oct 16 '17 14:10 ghost

getting this same problem

Bensigo avatar Mar 05 '18 03:03 Bensigo

One of these integration problems was solved in this PR (just need merge it now ...) I was getting error because the bitcore lib is using a new version of lodash while bitcore-explorers was using a functions that doesn't exist anymore.

https://github.com/bitpay/bitcore-explorers/pull/41

levymoreira avatar May 15 '18 22:05 levymoreira

I solved it by uninstalling bitcore-lib since bitcore-explorers already have them as a sub module

saritvakrat avatar Jul 16 '18 06:07 saritvakrat