bitcore-mnemonic
bitcore-mnemonic copied to clipboard
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.
When I am trying to use this lib in my nodejs script.
const Mnemonic = require('bitcore-mnemonic');
It says:
/Users/gkucmierz/learn/my-app/node_modules/bitcore-lib/index.js:12
throw new Error(message);
^
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.
at Object.bitcore.versionGuard (/Users/gkucmierz/learn/my-app/node_modules/bitcore-lib/index.js:12:11)
at Object.<anonymous> (/Users/gkucmierz/learn/my-app/node_modules/bitcore-lib/index.js:15:9)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/gkucmierz/learn/my-app/src/public/mix-coins.js:2:17)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)