Skip to content

[BUG] A error occurred while read the excel file created by "HAN CELL" #3014

@mazei97

Description

@mazei97

🐛 Bug Report

A error occurred while read the excel file by "HAN CELL" spread sheet.
https://www.hancom.com/product/office/forWindows/hancell

Lib version: 4.4.0

Steps To Reproduce

const reader = new FileReader()
reader.onload = (event) => {
  const data = event.target?.result
  if (data instanceof ArrayBuffer) {
    const workbook = new ExcelJS.Workbook()
    workbook.xlsx
      .load(data)
      .then(() => {
        const worksheet = workbook.getWorksheet(1)
        // ...
        resolve(true)
      })
      .catch((err) => {
        console.error('Error loading file data.', err)
        resolve(false)
      })

Error loading file data. TypeError: Cannot read properties of undefined (reading 'company')

The expected behaviour:

Reading file should success.
WiFi-Management (5).xlsx

Possible solution (optional, but very helpful):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions