I wrote an script and here's an snippet from my code:
let workbook = new Excel.Workbook();
await workbook.xlsx.readFile('./input.xlsx');
await workbook.xlsx.writeFile('./output.xlsx');
console.log('file saved!');
I know how async/await works and there is no error!
the input.xlsx
is a valid excel file. but the output.xlsx
can't be opened by libreOffice or Microsoft Excel.
I should notice that if I comment await workbook.xlsx.readFile('./input.xlsx');
, in this situation also the output.xlsx
can't be read too!
It's an strange issue for me! I used exceljs
many many times but I don't know why it's happening now!
exceljs
version: 3.9.0