Search code examples
internet-explorer-11microsoft-graph-toolkit

MGT Components and IE11


Discussions about supporting IE11 aside (we have clients still running IE and we need our solutions to support it wherever possible), I am failing to get any MGT components to work in IE. This is consistent across our custom solutions, basic web parts and also the samples provided. Before I raise an issue in the repository, I want to verify if IE11 is supported by MGT Components to start with.

To eliminate anything in our custom solutions, I have:

In all cases, modern browsers have no issue, but IE11 yields this error:

IE11 error message with MGT Components

Previously, polyfills were recommended for support in IE11:

// import web component polyfills for browsers that need them
import 'regenerator-runtime/runtime';
import 'core-js/es/number';
import 'core-js/es/math';
import 'core-js/es/string';
import 'core-js/es/date';
import 'core-js/es/array';
import 'core-js/es/regexp';
import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';

These have been removed from the documentation and also the samples. Is this because IE11 support is handled another way or has support been dropped altogether?


Solution

  • Unfortunately, very specifically the lack of web component support for ie11 in Sharepoint webparts caused us to need to stop supporting the browser. Along with Microsoft's announcement to drop support as well, we felt it was necessary to move on for future features.