Bitcore = "Error: More than one instance of bitcore-lib found"

1

These two lines (and nothing more), create an error:

var exp = require('bitcore-explorers');
var btc = require('bitcore-lib');

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 could see that this issue has been documented here, as well as here, and here. I read these pages, but I am still unable to overcome the issue.

Can someone please help? How do you do when trying to import different modules of bitcore?

hartmut

Posted 2016-07-30T08:44:34.183

Reputation: 571

Any news on this problem? According to other threads it seems rather intractable. Did you find a workaround?Mundi 2016-09-15T10:00:16.260

I have not found a solution to that unfortunately.hartmut 2016-10-03T09:10:18.687

Answers

1

I don't know if that's the right method but it does work.

delete global._bitcore
var bitcore = require('bitcore-lib')

01BTC10

Posted 2016-07-30T08:44:34.183

Reputation: 343

Is it the right way to do..? and it'll not stop bitcore-lib right..?Codebrekers 2017-09-20T06:33:44.237