TypeError: Cannot read property 'sheets' of undefined
See original GitHub issueI got this error when I tested the parsing process from an excel file. Hope someone can help me with this
TypeError: Cannot read property 'sheets' of undefined
at _callee10$ (/Users/tvi/Documents/BCM projects/cvd-genomics/node_modules/exceljs/dist/es5/xlsx/xlsx.js:553:43)
at tryCatch (/Users/tvi/Documents/BCM projects/cvd-genomics/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (/Users/tvi/Documents/BCM projects/cvd-genomics/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (/Users/tvi/Documents/BCM projects/cvd-genomics/node_modules/regenerator-runtime/runtime.js:117:21)
at asyncGeneratorStep (/Users/tvi/Documents/BCM projects/cvd-genomics/node_modules/exceljs/dist/es5/xlsx/xlsx.js:3:103)
at _next (/Users/tvi/Documents/BCM projects/cvd-genomics/node_modules/exceljs/dist/es5/xlsx/xlsx.js:5:194)
at <anonymous>
Excel File: TEST.xlsx
exceljs version: 2.0.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:32 (3 by maintainers)
Top Results From Across the Web
Exceljs - TypeError: Cannot read property 'sheets' of undefined
Exceljs - TypeError: Cannot read property 'sheets' of undefined ... I got this issue when I tried to read an excel file and...
Read more >App script for a sheet stopped working - TypeError
App script for a sheet stopped working - TypeError: Cannot read property 'source' of undefined - Google Docs Editors Community.
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Uncaught TypeError : Cannot read properties of undefined
The solution to TypeError: Cannot read properties of undefined ... The root cause of the error is that the declared variable doesn't have...
Read more >What does 'TypeError: Cannot read property '1' of undefined ...
It generally means that at the point of execution, the variable/object holding the property cannot be found by the script. It may be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not sure of the exact root cause, but opening the file in Excel and saving it again works.
Hi Everyone,
I reproduced this issue: Failed: Cannot read property ‘sheets’ of undefined
Configuration settings:
node - v: 14.16.0
“exceljs”: “^4.2.1”
test File: testFile.xlsx
Code:
Error raises during next line execution: await workbook.xlsx.readFile(pageComparisonXLSXFilePath);
Could you help me?
Regards, Sergei.