sheet_to_row_object_array(sheet) crashes when looping through sheetnames #4
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The following code crashes
C:\IS\node\node_modules\xlsx\xlsx.js:338
if (sheet["!ref"]) {
^
TypeError: Cannot read property '!ref' of undefined
at Object.sheet_to_row_object_array (C:\IS\node\node_modules\xlsx\xlsx.js:338:11)
at C:\IS\node\testapp\app3.js:9:32
at Array.forEach (native)
at Object. (C:\IS\node\testapp\app3.js:5:17)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Can you share a file that exhibits this problem?
can you
console.log(sheetName)
for the version that crashes?can you test with https://www.dropbox.com/s/2l8q76x6x75e13t/interview.xlsx (contributed by @nathanathan https://github.com/Niggler/js-xlsx/issues/2 )?
I tested with the interview file and some other files I have on my machine and I can't elicit the problem. For example, with the interview.xlsx, I see:
Hi
Does sheet_to_row_object_array ensures the running order of excel sheet rows...?
Thanks in advance
@chethan-K I think you are asking if the rows are in the same order that they appear in the excel sheet, and the answer is yes (it walks row-by-row in order when generating the output)
@SheetJSDev Yes, I was looking for the same thing. Thanks :)