Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

447
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda