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.