Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Error while I Installed the core sdk on react native "crypto could not be found within the project or in these directories:" #239

Open
devmandeep7777 opened this issue Jan 10, 2023 · 0 comments

Comments

@devmandeep7777
Copy link

devmandeep7777 commented Jan 10, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant