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

221
Visualizações
Importing and using Web3 in React causing a compilation issue

After trying to import and use Web3 into my ReactJS project, I am getting the following issue:

enter image description here

Not sure exactly why it is doing this. Here is how I am importing the library and where I am using the Web3 library.

import Web3 from 'web3';

console.log(Web3.utils.isAddress('0xc1912fee45d61c87cc5ea59dae31190fffff232d'));

I have also tried to use the nodeJs way of importing things like:

const Web3 = require('web-3');

And it is yielding same result.

The error seems to be that I need an 'appropriate loader to handle that type of file' but not sure how to handle that.

about 4 years ago · Juan Pablo Isaza
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