Angular4 应用程序在 IE11 中运行的问题 [英] Angular4 Application running issues in IE11

查看:33
本文介绍了Angular4 应用程序在 IE11 中运行的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Angular CLI (1.1.2) 构建一个 Angular4 项目.它在 Chrome(版本 59.0.3071.115)和 firefox(54.0.1)中完美运行,但是当我尝试使用 IE11(版本 11.0.9600.18738)时什么也没有出现,当我在 IE 中打开开发者模式时,它向我显示以下错误:

I am building a Angular4 project using Angular CLI (1.1.2). It runs perfectly in Chrome (Version 59.0.3071.115) and firefox(54.0.1) but when I tried to use IE11 (Verison 11.0.9600.18738) nothings shows up and when I open the develper mode in IE, it shows me the following Error:

SCRIPT5022: Exception thrown and not caught
File: polyfills.bundle.js, Line: 829, Column: 34

详细的错误信息如下:

有人知道如何解决这个问题吗?

Anyone knows how to solve this problem?

谢谢!

推荐答案

默认的 polyfills.ts 文件是有注释的,需要取消注释代码行并运行 npm install 对应的模块.然后它将与IE11兼容

The default polyfills.ts file is commented and need to uncomment lines of code and run npm install the corresponding module. Then it will compatible with the IE11

这篇关于Angular4 应用程序在 IE11 中运行的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆