Recently we discovered that Internet Explorer (IE10, IE11) is no longer loading our Angular v9.x application. It was bootstrapping and loading the application a couple months ago, and through a guard would redirect users with IE10 or IE11 to an unsupported view providing information on how they could upgrade to an evergreen browser (Chrome, Edge, Firefox, etc).
For some reason recently it doesn't seem to bootstrap the application, and instead you just stare at the logo endlessly that is in between the <app-root>
tags. There are no errors in IE11 using Windows 10 so I have nothing to debug.
I've moved through the usual suspects when it comes to this kind of issue (see below), and also reviewed multiple posts in stackoverflow like link and link, and referenced link and link. I'm confused by the lack of an error, as if Angular doesn't exist, but I can see the JS files being pulled down (runtime.js, polyfills.js, styles.js, scripts.js, vendor.js, and main.js).
- Polyfills
import 'classlist.js';
import 'web-animations-js';
import 'core-js';
- Browserlist
> 0.5%
last 2 versions
Firefox ESR
not dead
IE 9-11 # For IE 9-11 support, remove 'not'.
- ES5 tsconfig
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es5"
},
"include": [
"src/**/*.d.ts"
]
}
- Running a quick check:
npx es-check es5 './dist/**/*es5*.js' './dist/**/scripts.*.js' --verbose
- Ran the production build files locally and get the same results:
cd ./dist/PROJEC_NAME && npx local-web-server
This is one of those questions I hate asking especially since it ubiquitous, but I've spent so long trying to figure out why our application stopped running in IE11, and have exhausted my knowledge and research. Does anyone have any suggestions?