Error while I Installed the core sdk on react native "crypto could not be found within the project or in these directories:"
Opened this issue · 0 comments
Issue tracker is ONLY used for reporting bugs.
When I installed the core sdk on react native, it gave me the error "crypto could not be found within the project or in these directories:"
`error: Error: Unable to resolve module crypto from /home/mandeep/KyoAPp/kyo-react-native-app/node_modules/ethereumjs-wallet/dist.browser/index.js crypto could not be found within the project or in these directories:
node_modules
../../node_modules
71 | Object.defineProperty(exports, "__esModule", { value: true });
72 | exports.thirdparty = exports.hdkey = void 0;
73 | var crypto = __importStar(require("crypto"));
| ^
74 | var ethereumjs_util_1 = require("ethereumjs-util");
75 | var scrypt_js_1 = require("scrypt-js");
76 | var hdkey_1 = require("./hdkey");`
So I had to manually install the crypto-js module and had to manually export it giving alias name as "crypto".
even had to install other dependence's of IMX core sdk mannually.
stream
events
react-native-randombytes.
assert