PiotrMisiurek / screw-it-lets-do-it

5 stars 4 forks source link

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. #1

Open ilyago opened 7 years ago

dzarezenko commented 6 years ago

I have resolved this issue by setting direct versions of modules like in the article.

from:

"bitcore-explorers": "latest",
"bitcore-lib": "latest"

to:

"bitcore-explorers": "^1.0.1",
"bitcore-lib": "^0.13.19"
vishalmindinventory commented 6 years ago

Add delete global._bitcore; below the bitcore-lib.

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