684
Views
1
Comments
Solved
[AG-Grid] JavaScript error in IE11: 'fetch' is undefined
ag-grid
Web icon
Forge asset by João Sousa

Hi folks,


I happen to be using this component for an IE11 project and found this JavaScript bug:

...this is easily replicated by opening the component's sample link.


It seems this component is using Fetch API to retrieve data from the server (in one of the possible implementations to render data in AG Grid). Besides the alternative to load the data directly, by passing a record list to the web block (which is not desirable), the way to fix this seems to be through usage of a polyfill. Anyone had this issue, before? Any recommended Fetch polyfill I can reference?


Thanks!

2020-03-19 14-14-27
Pedro Gonçalves
Staff
Solution

...one solution was possible thanks to Github Fetch (whatwg) polyfill library and ES6-Promise dependency.

For future reference, please have a look at my custom AG Grid implementation, also attached. Regards!

AGGrid-custom-changes-polyfill-etc.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.