Home > Software design >  Angular does not work in IE and smart tv browsers
Angular does not work in IE and smart tv browsers

Time:10-17

My website is built with Angular 12 and SSR. but It doesn't work on IE or Samsung TV browsers. i added these lines to my polyfills.ts.

import "core-js/es/symbol";
import "core-js/es/object";
import "core-js/es/function";
import "core-js/es/parse-int";
import "core-js/es/parse-float";
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 "core-js/es/map";
import "core-js/es/weak-map";
import "core-js/es/set";
import "core-js/es/reflect";

and changed target property in ts-config file to es5. but still it is not working. Is there anything else I should do?

CodePudding user response:

IE is deprecated but you can look at this links :

In a .browserslistrc file you probably need to add this:

last 1 version
> 1%
IE 11
Samsung 

CodePudding user response:

Remove all core-js and try this in polyfills

import 'core-js';
  • Related