I am currently working on an angular2 application and need help exporting data to an xlsx file. I have been trying to get a couple of libraries to load, such as the ones mentioned in this jsfiddle and on stackoverflow. My attempts with alasql have resulted in errors, with messages stating it's not a module. Following advice from blogs like this one lead to errors such as "cannot read property 'compile' of undefined."
The jsfiddle provided shows the functionality I would like to achieve:
var res = alasql('SELECT INTO XLSX("MyAwesomeData.xlsx",?) FROM ?',[opts,[data1,data2]]);
If anyone has suggestions for other tools or approaches that would work in angular2, I am open to exploring them. However, the above solution using alasql would be ideal if I can successfully integrate it into my project.