Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

165
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda