使用 Angular 5 的 IE 11 兼容性错误
IE 11 compatibility errors using Angular 5
我已经构建了我的 Angular 应用程序,然后 运行 它在服务器中。
我收到本地主机中未显示的错误。
Unable to get property 'onHover' of undefined or null reference.
文件 Chart.min.js,行:10,行:115187
Error “SCRIPT 1028 Expected identifier, string or number”
文件 polyfills.bundle.js,行:6399,行:5。
Object doesn't support property or method 'querySelector
文件 styles.bundle.js,行:215,行:2
Expected identifier
文件:vendor.bundle.js,行:3169,行:23
我在 polyfills.ts
中取消注释导入
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
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/weak-map';
import 'core-js/es6/set';
//import 'classlist.js'; // Run `npm install --save classlist.js`.
import 'core-js/es7/reflect';
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
import 'zone.js/dist/zone'; // Included with Angular CLI.
这是加载应用时的网络流量
在 index.html 中添加元标记。这也是必要的一行。
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
我已经构建了我的 Angular 应用程序,然后 运行 它在服务器中。
我收到本地主机中未显示的错误。
Unable to get property 'onHover' of undefined or null reference.
文件 Chart.min.js,行:10,行:115187
Error “SCRIPT 1028 Expected identifier, string or number”
文件 polyfills.bundle.js,行:6399,行:5。
Object doesn't support property or method 'querySelector
文件 styles.bundle.js,行:215,行:2
Expected identifier
文件:vendor.bundle.js,行:3169,行:23
我在 polyfills.ts
中取消注释导入/** IE9, IE10 and IE11 requires all of the following polyfills. **/
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/weak-map';
import 'core-js/es6/set';
//import 'classlist.js'; // Run `npm install --save classlist.js`.
import 'core-js/es7/reflect';
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
import 'zone.js/dist/zone'; // Included with Angular CLI.
这是加载应用时的网络流量
在 index.html 中添加元标记。这也是必要的一行。
<meta http-equiv="X-UA-Compatible" content="IE=edge" />