Polymer 2.0应用程序使Internet Explorer 11崩溃 [英] Polymer 2.0 app crashes Internet Explorer 11

查看:91
本文介绍了Polymer 2.0应用程序使Internet Explorer 11崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可移植到ES5的Polymer 2.0应用程序.它可以在Edge,Firefox和Chrome浏览器中很好地工作;但是,当我在Windows 7、8.1或10的Internet Explorer 11中打开它时,程序崩溃.有时,它会在没有大多数样式的情况下进行渲染,而有时,它甚至会在渲染页面之前崩溃.曾经,它说一个脚本运行了很长时间,问我是否要停止该脚本.这样做也会使IE崩溃.

I have a polymer 2.0 app that is transpiled to ES5. It works well in Edge, Firefox, and Chrome; however, when I open it in Internet Explorer 11 on Windows 7, 8.1, or 10, the program crashes. Sometimes it will render without most of the styles, other times it will crash before the page is even rendered. Once, it said that a script was running long and asked if I wanted to stop the script. Doing this also crashed IE.

由于开发者工具无法打开,因此我无法对其进行调试.您对解决此问题有什么建议?

Since the developer tools won't open, I'm not able to debug this. What suggestions would you have for resolving this issue?

推荐答案

在项目的bower.json文件中,webcomponentsjs仅保存为开发依赖项.将此更改为主要依赖项,重新运行Bower安装,然后重新构建应用程序已解决了此问题.

In the project's bower.json file, webcomponentsjs was only saved as a dev dependency. Changing this to a primary dependency, rerunning bower install, and then rebuilding the app has solved this issue.

这篇关于Polymer 2.0应用程序使Internet Explorer 11崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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