Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.
This repository was 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

@devmandeep7777

Description

@devmandeep7777

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions