Angular 2不在IE11中工作

Angular 2不在IE11中工作,angular,typescript,polyfills,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. imp

我在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中工作得非常好。

您必须首先找到导致此错误的代码部分。用空组件试试?