bitcore-explorers
bitcore-explorers copied to clipboard
Unable to install alongside recent versions of bitcore-lib
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.
getting this same problem
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
I solved it by uninstalling bitcore-lib since bitcore-explorers already have them as a sub module