Filesaver.js: XLSX.writeFile() is getting called 2 times

Created on 7 Jan 2019  路  5Comments  路  Source: eligrey/FileSaver.js

Hello,

I have written a below code using XLSX:

XLSX.writeFile(workbook, 'sample.xlsx');

Now this line is getting called 2 times.

Is there any specific reason for this?

All 5 comments

Is XLSX a part of FileSaver.js? I can't find XLSX anywhere in th FileSaver.js code, so I think it is the wrong GitHub project that you are posting your issue...

Got the same issue. rolled back to 1.3.1 and everything is working.

@nicumaxian Can you please point me to where XLSX is a part of FileSaver.js?

Looking in the code (https://github.com/eligrey/FileSaver.js/blob/master/dist/FileSaver.js) there are nothing that says either XLSX or a method called 'writeFile'. In FileSaver you use the method saveAs (https://github.com/eligrey/FileSaver.js/blob/master/dist/FileSaver.js)

This issue should be closed.

FileSaver and XLSX are two different libraries, so the issue I have posted here is related to XLSX not with FileSaver. Because I am not using FileSaver's function, I am using XLSX libraries function which is XLSX.writeFile(). That's why the issue shoudn't be close out.

So no code is provided to demonstrate the issue and another library is used which is causing the issue, but still the an issue is filed here? That doesn't make any sense.

Nowhere in the readme does it say that other libraries are supported: https://github.com/eligrey/FileSaver.js/

I suggest that an issue is filed at the other library.

This should be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhyous picture rhyous  路  6Comments

danielbronder picture danielbronder  路  6Comments

nomego picture nomego  路  6Comments

siva3378 picture siva3378  路  7Comments

HR picture HR  路  4Comments