npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

XLSX download not working in android mobile


I have used “npm i xlsx” to generate and download a excel file. The below code works fine in chrome browser. I have converted the same app using cordova for android mobile and excel download is not working. Im not receiving any errors as well.

Please advice where im wrong.

downloadexcelmobile() {

const ws: XLSX.WorkSheet = XLSX.utils.aoa_to_sheet(this.ArrayList);

/* generate workbook and add the worksheet */
const wb: XLSX.WorkBook = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, ‘Sheet1’);

/* save to file */
XLSX.writeFile(wb, ‘MyExcelFile.xlsx’);


(You might get an answer here, but because this forum is focused on npm, you might want to ask your question somewhere that targets experts with your package. I have moved your topic to #community:javascript)