I have to convert one of the sheets from an xslx to csv, for that I use the following code:
url = 'routes/file.xlsx';const workbook = XLSX.readFile(url); const csv = XLSX.utils.sheet_to_csv(workbook.Sheets.files);XLSX.writeFile(csv, 'file.csv');
But when I execute it, I get that error, some idea of what to do.
Thank you