我已经构建了我的角应用程序,然后在服务器上运行它。
我发现了本地主机中没有显示的错误。
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.以下是加载应用程序时的网络交易

发布于 2018-04-12 11:59:17
在index.html中添加元标记。这也是一条必要的路线。
<meta http-equiv="X-UA-Compatible" content="IE=edge" />https://stackoverflow.com/questions/49793662
复制相似问题