【发布时间】:2019-03-08 03:26:30
【问题描述】:
我正在使用 Angular 5 并尝试在 IE11 中运行我的应用程序。我已取消注释 .\my-app\src\polyfills.ts 中的必要代码,但不幸的是,在我的 index.html 文件中收到与此代码相关的以下错误:
<script>
System.import('main.js').catch(function(err){ console.error(err); });
</script>
Error: 'System' is undefined
我环顾四周,发现以下 Github 问题有可能修复:
https://github.com/angular/angular/issues/7144
在这个线程中,它提到我需要在我的 index.html 文件中包含这个:
shims_for_IE.js
现在,我正在使用 Angular 5,但我不确定在哪里可以找到这个 shims_for_IE.js 文件,以便将它放在我的 index.html 文件中。
如何在 IE11 中解决 'System' is undefined 问题?
【问题讨论】:
-
从浏览器列表文件的
not IE 9-11行中删除not关键字 -
@AbhayGawade 抱歉,不确定在哪里可以找到此浏览器列表文件以删除
not关键字
标签: javascript angular internet-explorer-11