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

164
Visualizações
SheetJS XLSX.read ends up with Page Unresponsive

I am trying to read a xlsx file that has a size of 3000KB and convert it to JSON using SheetJS, but when I read the file I seem to get a chrome 'Page Unresponsive error', clicking wait on the error everytime I upload a file is not ideal.

How can I resolve this issue?

onChange(event) {
  this.file = event.target.files ? event.target.files[0] : null;
  this.uploaded = true;
  const reader = new FileReader();
  reader.readAsArrayBuffer(this.file);
  reader.onload = function () {
    const data = new Uint8Array(reader.result);
    const wb = XLSX.read(data, { type: 'array', sheets: ['Sheet1', 'Sheet2'] });
    this.summary = XLSX.utils.sheet_to_json(wb.Sheets.Summary);
    this.weeklyDetails = XLSX.utils.sheet_to_json(wb.Sheets['Weekly Details']);
    console.log(this.weeklyDetails);
  };
},

enter image description here

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