角度 4:IE 9 中" SCRIPT5022: Exception thrown and not caught"填充错误



我的应用程序使用 Angular 4.0.0 和"angular-polyfills":"^1.0.1",它适用于除 IE9 以外的所有浏览器

我取消注释了 polyfills.ts 文件中的所有行

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';

我在IE9中收到此错误

     try {
                return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
            }
            catch (error) {
                if (this._zoneDelegate.handleError(this, error)) {
                    throw error;
                }
            }
        }
        finally {
            // if the task's state is notScheduled or unknown, then it has already been cancelled
            // we should not reset the state to scheduled
            if (task.state !== notScheduled && task.state !== unknown) {
                if (task.type == eventTask || (task.data && task.data.isPeriodic)) {
                    reEntryGuard && task._transitionTo(scheduled, running);

我是否必须包含任何其他填充文件。提前致谢

有一个 polygon.ts 文件,其中包含注释代码,该代码表示取消注释以获得 IE9 支持。

最新更新