Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

440
Views
crypto could not be found within the project or in these directories node_modules/ethereumjs-wallet/node_modules

I am getting this error

[Error: undefined Unable to resolve module crypto from /pathToProject/node_modules/ethereumjs-wallet/dist.browser/index.js: crypto could not be found within the project or in these directories: node_modules/ethereumjs-wallet/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");

Some related dependencies :

    "@ethersproject/shims": "^5.6.0",
    "@metamask/controllers": "^30.0.0",
    "crypto-js": "3.3.0",
    "eth-keyring-controller": "^7.0.2",
    "ethers": "^5.6.4",
    "react-native-aes-crypto": "^2.1.0",
    "react-native-crypto": "2.1.2",

I am trying to use KeyringController from here and other controllers defined by MetaMask from here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Module crypto is not part of react-native runtime by default.

You might need to follow the https://www.npmjs.com/package/react-native-crypto#install to set up the shim.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!