Search code examples
angularinternet-explorerinternet-explorer-11angular7polyfills

Angular 7 and IE


I'm getting this error in IE 11 when viewing the angular app

SCRIPT445: Object doesn't support this action
zone.js (199,1)

if (this._zoneDelegate.handleError(this, error)) {
    throw error;
}

Using Angluar Core 7.2.15 and my polyfills I use

import 'core-js/es6/symbol';
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/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';
import 'core-js/es6/array';
import 'core-js/es6/object';
import 'core-js/es7/array';
import 'core-js/es7/object';

Not sure what else I could do


Solution

  • Nico's suggestion was right. As he said core-js only provides polyfills for popular es6 features. I used new URL() which isn't supported by IE.