Angular 5在IE9中不起作用“ Internet Explorer无法显示该网页”

时间:2018-07-18 00:41:27

标签: angular internet-explorer-9

我的应用程序可以在Safari,Chrome,Firefox,IE11,IE10上运行,但不能在IE9上运行。当我上传页面时,控制台保持空白,因此没有错误消息。这是我的polyfills.ts。

 * BROWSER POLYFILLS*/

/** IE9, IE10 and IE11 requires all of the following polyfills. **/
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';

/** IE10 and IE11 requires the following for NgClass support on SVG 
     elements */
import 'classlist.js';  // Run `npm install --save classlist.js`.

/** IE10 and IE11 requires the following for the Reflect API. */
import 'core-js/es6/reflect';


/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular 
decorators), you can remove.
import 'core-js/es7/reflect';

import 'web-animations-js';  // Run `npm install --save web-animations-js`.

import 'zone.js/dist/zone';  // Included with Angular CLI.

import 'ie9-oninput-polyfill';
import 'angular-polyfills/dist/blob';
import 'angular-polyfills/dist/classlist';
import 'angular-polyfills/dist/formdata';
import 'angular-polyfills/dist/intl';
import 'angular-polyfills/dist/shim';
import 'angular-polyfills/dist/typedarray';
import 'console-polyfill';

我已经运行npm install --save console-polyfill npm install-保存ie9-oninput-polyfill npm install-保存angular-polyfills npm install-保存web-animations-js npm install-保存classlist.js

我正在使用运行IE9 -Win7的Oracle VM VirtualBoxManager。如果有人知道如何获取错误消息,那也将有所帮助。

我想补充。开发人员工具HTML显示以下内容:

<head>
  Text - Empty Text Node
  <link href="ErrorPageTemplate.css" rel-"stylesheet" type="text/css"/>
  Text - Empty TextNode
  <meta http-equiv="Content-Type" content "text/html; charset=UTF-8"/>
  Text - Empty TextNode
  <title>
  Text - Internet Explorer cannot display webpage
  Text - Empty TextNode
  <script language="javascript" src="errorPageStrings.js" type = "text/javascript">
    Text - Empty Text Node....

0 个答案:

没有答案