TypeError:您提供了“未定义”的预期流。 (IE)

时间:2019-04-23 06:01:04

标签: angular typescript internet-explorer

我正在开发一个在Internet Explorer中无法使用的Angular 7应用程序(在其他浏览器中,一切正常。)错误信息: TypeError:您提供了一个无效的对象,该对象应在其中流。您可以提供一个Observable,Promise,Array或Iterable。 我已经进行了无数次尝试来解决该问题,但是还没有找到解决方案。

有人知道为什么吗?我为每一个小技巧感到高兴!非常感谢。

我对polyfills.ts作了以下附加导入:

import 'web-animations-js';
import 'zone.js/dist/zone'; 
import '@webcomponents/custom-elements';
import '@webcomponents/custom-elements/src/native-shim';
import 'intl';

我的package.json:

  "dependencies": {
    "@angular/animations": "^7.0.3",
    "@angular/cdk": "^7.0.3",
    "@angular/common": "^7.0.3",
    "@angular/compiler": "^7.0.3",
    "@angular/core": "^7.0.3",
    "@angular/forms": "^7.0.3",
    "@angular/http": "^7.0.3",
    "@angular/material": "7.2.1",
    "@angular/platform-browser": "^7.0.3",
    "@angular/platform-browser-dynamic": "^7.0.3",
    "@angular/router": "^7.0.3",
    "@fortawesome/fontawesome-free": "^5.3.1",
    "@ngrx/effects": "^6.0.1",
    "@ngrx/entity": "^6.0.1",
    "@ngrx/store": "^6.0.1",
    "@ngrx/store-devtools": "^6.0.1",
    "@ngx-translate/core": "9.1.1",
    "@ngx-translate/http-loader": "^2.0.1",
    "@syncfusion/ej2-ng-buttons": "^16.1.37",
    "@syncfusion/ej2-ng-grids": "^16.1.44",
    "@syncfusion/ej2-ng-popups": "^16.1.42",
    "angular-calendar": "^0.25.2",
    "angular-messages": "^1.7.7",
    "classlist.js": "^1.1.20150312",
    "core-js": "^2.4.1",
    "font-awesome": "^4.7.0",
    "global": "^4.3.2",
    "lht-auth": "1.4.1",
    "lht-bootstrap-npm": "1.0.7",
    "ngrx-store-logger": "^0.2.2",
    "ngx-bootstrap": "^3.0.1",
    "ngx-contextmenu": "^5.0.1",
    "ngx-cookie": "^1.0.1",
    "ngx-cookie-service": "^1.0.10",
    "ngx-device-detector": "1.3.4",
    "node-sass": "^4.6.0",
    "primeflex": "^1.0.0-rc.1",
    "primeicons": "^1.0.0",
    "primeng": "^7.0.5",
    "rxjs": "^6.2.1",
    "rxjs-compat": "6.3.3",
    "web-animations-js": "^2.3.1",
    "zone.js": "^0.8.26"
  },

0 个答案:

没有答案