Replies: 4 comments
-
I ran into this today as well. It seems that XLS files are not compresses and XLSX files are. Please try resaving your file as XLSX and see if that file will work. If it does then we know that we need a way to disable the decompression. |
Beta Was this translation helpful? Give feedback.
-
@intervalia I ran into the same problem, so I changed the file extension when saving it from XLS to XLSX and now it is working. |
Beta Was this translation helpful? Give feedback.
-
Are you assuming the people writing the code are the same people creating the Excel files? Can't the library detect which files are zipped or not, especially given the |
Beta Was this translation helpful? Give feedback.
-
I am currently encountering this issue unexpectedly in production and don't know how to fix it. It started happening out of nowhere, I think it might have been caused by switching to Typescript ^5.0? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I´m trying to read a xlxs file and we have the next error:
Error: Corrupted zip: can't find end of central directory
const workbook = new Excel.Workbook();
await workbook.xlsx.read(stream)
const sheet = workbook.getWorksheet('Accounts') // the error procuces here
Beta Was this translation helpful? Give feedback.
All reactions