【发布时间】:2017-06-16 11:29:07
【问题描述】:
我已经成功部署了我的 Angular 2 应用程序。
用户通过 https://www.polsannet.com/webapp/
但是 IE 用户反复报告他们无法查看登录页面。 任何帮助表示赞赏。 提前致谢。
更新 1: 添加上述脚本后,应用程序现在路由到 pagenotfound 组件。再次仅在 IE 上。 更新 2: 部署到 prod 时,可以在 http://localhost:4200 上与 IE 一起正常工作。 IE 仍然无法启动。
polyfills.ts
// This file includes polyfills needed by Angular 2 and is loaded before
// the app. You can add your own extra polyfills to this file.
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
import 'zone.js/dist/zone';
【问题讨论】:
-
你配置了 polyfill 文件吗?
-
也许您仍然可以将以下脚本添加到您的 html 中: