-
Notifications
You must be signed in to change notification settings - Fork 214
promiseObj.wb.WorkSheet is not a function #156
Comments
@dangear I'm having the same problem. Did you manage to solve it ? |
@FlyingPumba, could you provide a small gist that I can use to try to replicate this issue? |
@FlyingPumba Can you show your code? |
@natergj @dangear Sorry, I don't have a small gist of code to replicate the issue. Nevertheless, I think I found the cause of the issue. The problem seems to appear on line https://github.com/natergj/excel4node/blob/master/source/lib/workbook/builder.js#L500 this happens when I call workbook.write(...) with a workbook that doesn't have sheets. You probably meant to write "promiseObj.wb.Worksheet();" instead of "promiseObj.wb.WorkSheet();". |
Thanks for finding that @FlyingPumba! I'll get that fixed in the next release |
This is now fixed with version 1.5.0 |
It seems i meet this error also, my case wb required at least one worksheet, calling wb.addWorksheet(sheetName) |
Have this error when need to save xls file
Node version is 9.3.0
The text was updated successfully, but these errors were encountered: