Ng-cli serve 在 IE 中不起作用,但 ng-cli build 可以,缺少什么?

Ng-cli serve not working in IE but ng-cli build does, whats missing?

所以我正在托管该应用程序,我注意到,如果我使用 IE11 浏览该应用程序,ng serve 将失败,而 ng build && yarn http-server 将成功。我怀疑这是由于 polyfill 但我不确定解决它的正确方法。我错过了什么?

如果它不是直接完成的方式,我最好想要一种方法 运行 ng-serve 以构建配置的方式。

这似乎是一个已知问题。到处都是很多信息,所以我会在这里总结一下:

这似乎是一个影响 IE 和 Safari 的 webpack 问题

  1. this open issue. It will eventually lead you back to 。它 基本上说更改 webpack(降级)似乎可以解决问题。

The error is due to the development server's live reload client code (from webpack-dev-server) which requires basic ES2015 support.

  1. 我也看到 --no-live-reload 可能有用,但这完全不方便。