protobi / js-xlsx

XLSX / XLSM / XLSB (Excel 2007+ Spreadsheet) / ODS parser and writer
http://oss.sheetjs.com/js-xlsx
Other
817 stars 417 forks source link

Cannot read property 'attributes' of undefined #88

Open chgritt opened 6 years ago

chgritt commented 6 years ago

`C:\workspace\excel_parser\node_modules\xlsx-style\xlsx.js:11525 if(dir.workbooks[0].substr(-3) == "bin") xlsb = true; ^

TypeError: Cannot read property 'substr' of undefined at parse_zip (C:\workspace\excel_parser\node_modules\xlsx-style\xlsx.js:11525:21) at read_zip (C:\workspace\excel_parser\node_modules\xlsx-style\xlsx.js:11739:9) at readSync (C:\workspace\excel_parser\node_modules\xlsx-style\xlsx.js:11755:11) at Object.readFileSync (C:\workspace\excel_parser\node_modules\xlsx-style\xlsx.js:11762:12)`

Some files passed this error, but the other files occurred this error. Can you help me??