Search code examples
angularinternet-explorer

How can I make Angular 9 work on Internet Explorer?


I'm trying to get my Angular 9 App working on IE 11. Actually, the app is perfectly working on Chrome, Safari, Firefox, Edge but IE is showing a blank page. I've been trying a lot of stuff :

  • I've removed all arrow functions in my code
  • Change tsconfig's target from es2015 to es5
  • Added and uncommented all IE specifications in polyfill.ts

But same result, my app is still showing blank page whenever I build it and send it on my NGINX server.

I think some of my Node Modules could contain arrow functions, but can't really delete theme.

Is there any way (using Babel for example) of converting my build to a correct ES5 syntax working on IE ?


Solution

  • As you stated, I would look into Babel here. I was having a issue in regards to Babel with IE earlier and believe this should work for you