Angular 2在IE11中不起作用

时间:2017-02-02 03:20:19

标签: angular typescript polyfills

我在IE 11中收到以下错误

Script5022: Error: No provider for t!

我正在使用angular 2 CLI并且已经看到很多关于更新垫片的讨论我已经做过但无济于事。

polyfil.ts

// This file includes polyfills needed by Angular 2 and is loaded before
// the app. You can add your own extra polyfills to this file.
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/set';
import 'core-js/es6/reflect';

import 'core-js/es7/reflect';
import 'core-js/es7/array';
import 'core-js/es7/observable';
import 'zone.js/dist/zone';
import 'reflect-metadata';

tsconfig.json

{
  "compilerOptions": {
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": ["es6", "dom"],
    "mapRoot": "./",
    "module": "es6",
    "moduleResolution": "node",
    "outDir": "../dist/out-tsc",
    "sourceMap": true,
    "target": "es5",
    "typeRoots": [
      "../node_modules/@types"
    ],
    "types": [
      "node",
      "hammerjs"
    ]
  }
}

关于可能导致此问题的任何想法?它在Chrome,Safari和Friefox中运行得非常好。

0 个答案:

没有答案