I have been attempting to convert my json-like data into an xlsx file format. I utilized the xlsx npm package and followed various code samples available online, however, when trying to open the file in Excel, I encountered the following error: https://i.stack.imgur.com/IpwQe.png
/* original data */
var data = [{first: "Jack", last: "Wilshere"}, {first: "Tom", last: "Cleverly"}, {first: "Morgan", last: "Schneiderlin"}];
var filename = 'test.xlsx';
/* creating the worksheet */
var ws = XLSX.utils.json_to_sheet(data);
/* adding to workbook */
var wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, filename);
/* writing workbook (using type 'binary') */
XLSX.writeFile(wb, filename);
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.15.5/xlsx.min.js"></script>