2017-09-24 150 views
0

我是Angular的新手,我參考了這個鏈接https://angular.io/guide/quickstart &創建了基本(hello world)程序。我將默認瀏覽器設置爲IE。AngularJS快速啓動應用程序顯示在Internet Explorer中的空白屏幕

當我執行ng serve --open命令時,它會打開IE,但頁面是空白。在其他瀏覽器Chrome/Mozilla中,

我檢查了我遇到的控制檯日誌錯誤。

「SCRIPT5022:拋出異常,而不是陷入」

有誰能夠告訴我什麼是錯在這裏,這是角4

一個非常基本的程序Annu

+0

什麼是您的IE版本? – lpradhap

+0

Internet Explorer 11 –

回答

1

我也遇到了這個問題。嘗試這種

打開src - > Polyfills.ts文件&取消註釋以下行,

進口 '芯-JS/ES6 /符號';

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

這應該爲您解決問題。

Atul

相關問題