问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/44360529/polymer-2-0-app-crashes-internet-explorer-11