natergj / excel4node

Node module to allow for easy Excel file creation
MIT License
1.38k stars 215 forks source link

Solved: creating a buffer #336

Open ricardomiranda-allims opened 3 years ago

ricardomiranda-allims commented 3 years ago

Describe the bug UnhandledPromiseRejectionWarning: TypeError: promiseObj.wb.Worksheet is not a function

To Reproduce wb.writeToBuffer() on express.js

Expected behavior genereta a buffer

Environment (please complete the following information):

Additional context In file ".\distribution\lib\workbook\builder.js" Change "promiseObj.wb.Worksheet();" to "promiseObj.wb.addWorksheet();"