Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than one instance of bitcore-lib found #24

Open
kodmanyagha opened this issue Jul 21, 2019 · 4 comments
Open

More than one instance of bitcore-lib found #24

kodmanyagha opened this issue Jul 21, 2019 · 4 comments

Comments

@kodmanyagha
Copy link

I pulled the repo, installed necessary things and started the app. Entered to http://localhost:3001/ but it didn't opened. When I looked to console output I received this error:

Uncaught (in promise) 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.

What do you think? Thanks.

@locip3it
Copy link

I got same issue
image

can you help solve the problem, please?

thank you in advance

@locip3it
Copy link

locip3it commented Jul 30, 2019

I found how to solve this problem, the problem arise because of bitcore-lib and bitcore-mnemonic, you can see both index.js on bitcore-lib/index.js and bitcore-mnemonic/bitcore-lib/index.js referenced different package.json of bitcore-lib
how to solve this issue:

  1. do this: comment version check at bitcore.versionGuard
    // module information
    bitcore.version = 'v' + require('./package.json').version;
    bitcore.versionGuard = function(version) {
    /*
    if (version !== undefined) {
    var message = '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.';
    //throw new Error(message);
    throw new Error(version);
    }//*/
    return;
    };
  2. or you can change the reference to the same path on your main bitcore-lib

this issue not from eth-hot-wallet itself but because of the dependencies

hope this help all of us

thank you,
regards

@4Maarifa
Copy link

Hello @locip3it , I follow the documentation eth-hot-wallet.com docs react-boilerplate
when I run npm run setup && npm start
Iget this error
Capture
Error: Cannot find module 'D:\app\eth-hot-wallet\internals\scripts\setup.js'
there is no setup.js file in eth-hot-wallet\internals\scripts\
@locip3it Sir give me your Email I need your help

@locip3it
Copy link

locip3it commented Aug 9, 2019

@4Maarifa Hi, I never try myself run npm setup
maybe you can check these things :

  1. Did you install all dependencies? (run npm install)
  2. Did you ever try npm start?
  3. Did you ever try npm run build:dll?

I think you have issue with dependencies

npm setup function defined here https://eth-hot-wallet.com/docs/react-boilerplate/general/commands.html

sorry can't help much
regards

Repository owner deleted a comment from synchrovision Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants