【发布时间】:2020-01-30 18:43:09
【问题描述】:
我的 Angular 应用程序适用于除 Internet Explorer 之外的所有网络浏览器。它在控制台中显示此错误。
polypills.ts 看起来像这样,
* BROWSER POLYFILLS
*/
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/number';
import 'core-js/es6/string';
import 'core-js/es6/array';
/** 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';
(window as any).__Zone_enable_cross_context_check = true;
【问题讨论】:
-
您可以参考以下链接:stackoverflow.com/questions/35140718/…
标签: javascript angular internet-explorer-11