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

163
Views
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
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!