natergj / excel4node

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

Excel4Node not saving file #227

Closed Hobart2967 closed 6 years ago

Hobart2967 commented 6 years ago

Describe the bug Using the example below (see link), the file is not getting saved. It is not hitting any of the console.logs inside the callback function of workbook.write. File is not to the disk afterwards, but code runs successfully and process exits.

To Reproduce https://gist.github.com/Hobart2967/5bfbe9da3b4980c2a8b56fb3bc410ad2 Hint: pass { export: 'filename.xlsx' } as arguments to exported function

Expected behavior File saves properly.

Environment (please complete the following information):

Additional context

Hobart2967 commented 6 years ago

It's not even doing it on runkit: https://runkit.com/hobart2967/my-first-playground

Hobart2967 commented 6 years ago

Nevermind. Found it: After calling the exported function stated in the gist, i called proces.exit and the saving never came to finish. stupid me!

Hobart2967 commented 6 years ago

//close