Does anyone have an example of webpack working with running GridExcelExporter to export a grid? I'm running into all sorts of webpack'ish issues when trying to do so.
Hi Stephen,
Currently we are not aware of such issues, but we don't have an example either. I will work to prepare one and see if what we can do if/when any troubles occur. I will keep you updated.
Hello Stephen,
Thank you for your patience and understanding while I'm going though this. I will update you again once I have more significant progress on the task.
Thanks for working on this, I'm looking forward to getting this working nicely!
I am experiencing different issues depending on the exact version of IgniteUI used. Could you let me know the version number that you use, so that I can focus on resolving the issues with it.
Also, it will be helpful to note what is the issues you are facing - did you manage at least to have the igGrid rendered on the page and have issues on exporting, or else ? To update you on my progress - igGrid is rendered fine, and I am having issues with Intl library that is required by our excel library.
Hristo
I've tried just about every version/update of 16.2 and had issues. I'm fine with using the latest version. I am able to get the grid to render and work pretty well, but yeah I get hung up on the Intl stuff and then after hacking that i get errors in the actual code dealing with the excel formatting.
Thanks for quick response. I will go for the latest version as well. First intl issues is resolved by referencing Intl explicitly, but then it throws "No locale data has been provided for this object yet", which indicates that Intl locales are not accessible. I am currently working onto it. Please let me know what formatting issues you have, so that if it shows on my side I know if it is the same.
I am continuing work and will update you in the end of the working day.
I am still hitting the "No locale data has been provided for this object yet". If you are able to get around this, but then getting the following error:
Uncaught Class {__message: null, __innerException: null}
please let me know, we have a solution fort the last one. Anyway, tell me what is the exact error you get in formatting after you "hack the Intl stuff".
I did get that Uncaught class error once I believe. It'll take a bit to get back to that point, I can try later this week to get there and see if we can match up on where we're still struggling to get through this.
Thanks.
Meanwhile could you update me if you did worked around the "No locale data has been loaded" error and how, and what is the latest issue you are running into.
I investigated further and found out we need to pass this.IntlPollyFill.__addLocaleData to resolve the No Locale Data error (this is done in the Infragistics.documents.core.js). Then a saveAs is not defined error will occur, so we will need to put saveAs on the global scope as well:
global.saveAs = require('./ignite/filesaver').saveAs;
I am attaching the sample I worked with.
Please let me know if you have further questions on the matter, I will be glad to help.
Can you please supply the webpack.config file you used as well as the package.json file? I'm using typescript as well, so I want to make sure I've got everything setup similarily
Sure. Please find attached both package.json and webpack.config.js that were used.