首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用角5的IE 11兼容性错误

使用角5的IE 11兼容性错误
EN

Stack Overflow用户
提问于 2018-04-12 10:01:47
回答 1查看 3.3K关注 0票数 4

我已经构建了我的角应用程序,然后在服务器上运行它。

我发现了本地主机中没有显示的错误。

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中没有注释导入

代码语言:javascript
复制
/** 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.

以下是加载应用程序时的网络交易

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-04-12 11:59:17

在index.html中添加元标记。这也是一条必要的路线。

代码语言:javascript
复制
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49793662

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档