I'm importing bitcore-mnemonic
in my React project with this conditions:
- I'm importing it just once and in one file.
- The component utilising it is imported just once and is called by
react-router
. - No other library is using
bitcore-lib
. How did I find? searchednode_modules
. - I'm importing as
import mnemonic from 'bitcore-mnemonic';
.
And I'm getting this error while running unit tests:
Uncaught 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.
Please help me know what I'm doing wrong.