EDIT: FROM ANGULAR V13, IE11 CAN NO LONGER BE SUPPORTED. IF YOU NEED TO SUPPORT IE11, PLEASE USE A VERSION OF ANGULAR <13
In this article I ...
For further actions, you may consider blocking this person and/or reporting abuse
Nice summation on what is required. Our team had already implemented most of these but others using our Angular library were not able to get some of the features in our library to work. Thank you for putting this together!
To give support for IE 11 is huge pain in the ass.. I trying my butt off from past 2 days tried each and every solution given on any blog or any video... tried the which is here as well still there is no luck with me...
I'm still facing the issue.
What issues are you seeing?
Here is my pollyfills.js
/***************************************************************************************************
$localize
onto the global scope - used if i18n tags appear in Angular templates. / import '@angular/localize/init'; /*/***************************************************************************************************
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';
/** Issue with IE and FormData **/
import 'formdata-polyfill';
/** IE10 and IE11 requires the following for NgClass support on SVG elements /
import 'classlist.js'; //Run
npm install --save classlist.js
./*
@angular/platform-browser/animations
import 'web-animations-js'; // Run
npm install --save web-animations-js
.import 'core-js/client/shim';
/**
zone.js
being loaded, and webpackzone.js
patch for IE/Edge */***************************************************************************************************
Also I have attached the IE11 Error page.
IE11Screenshot
Doesn't look like images attached. Can you message me on Twitter @FerryColum ?
I have also added the necessary Meta tag edited the tsconfig.js to target es5 edited browserlist pretty much everything.
TIL IE11 support in Angular is a huge pain.
Without having looked into it much and knowing that
ng eject
is now nonviable, I wonder if @angular-builders/custom-webpack might be a gateway to having a webpack config that transpiles 3rd party libraries into es5 to fit this use case.Funnily enough, I explored this option when I was trying to get the CSS Custom Properties to work.
I did not consider this for the dependencies. I'm sure there might be a Babel Plugin that might do this. It's worth the investigation.
I would state that Angular is not the best solution if you have to support IE 11 then. For whatever reason you still have to support IE11 (enterprise maybe?), using modern frameworks with it is never an ideal solution, so going back to something more easier would be probably the way to go then.
I'm actually going to disagree. It was still possible to support IE11, fully, despite the polyfills and ponyfills.
Knowing the limitations now allows us to move forward keeping these restrictions in mind, but Angular on its own is not to fault, and potentially shouldn't be overlooked just because IE11 has to be supported.
It also allows us to continue to develop in a modern environment, which keeps the option that if we ever no longer have to support IE11, due to changes in SLAs, then we can remove the polyfills and alter the target in the tsconfig compilerOptions to target a more modern version of ECMAScript.
I've worked on a few apps with Angular that support IE11, had no issues that were Angular specific. Also with Angular 8 there's
differential loading
which produces polyfill bundles for older browsers alongside smaller bundles for modern browsers (it's very clever!)It is, I have a note in the article how it can increase bundle size if you allow it to run for IE9 and 10.
From what I've experienced though, was that dropping the target to es5 meant that your dependencies have to support es5.
I left a comment under one of the feedback to this article to state that it was very possible to support IE11, and in truth, Angular did not in itself have any issues, however, the additional tools you might use along with it will need extra work
I am getting the below error in IE11. I am using promise in App_initializer.
Can you please help.
https://www.google.com/url?sa=i&url=https%3A%2F%2Fcodepureandsimple.com%2Fpolyfilling-internet-explorer-11-a715c5b3c72&psig=AOvVaw3qAkJ2dlplBjbH95alGDN1&ust=1600592007830000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCODhwoPs9OsCFQAAAAAdAAAAABAJ