我有一个 angular-cli 项目。我也增加了速度。我将它添加到 index.html 的标题中<script src="assets/lib/pace/pace.min.js"></script>
。它在 chrome 中正常工作,但在 IE-11 中出现以下错误:
ERROR TypeError: Invalid calling object
stack: "TypeError: Invalid calling object
at scheduleTask (http://localhost:4200/polyfills.bundle.js:8607:13)
at ZoneDelegate.prototype.scheduleTask (http://localhost:4200/polyfills.bundle.js:6279:21)
at DELEGATE_ZS.onScheduleTask (http://localhost:4200/polyfills.bundle.js:6169:13)
at ZoneDelegate.prototype.scheduleTask (http://localhost:4200/polyfills.bundle.js:6273:17)
at Zone.prototype.scheduleTask (http://localhost:4200/polyfills.bundle.js:6104:17)
at Zone.prototype.scheduleMacroTask (http://localhost:4200/polyfills.bundle.js:6127:13)
at Anonymous function (http://localhost:4200/polyfills.bundle.js:8637:17)
at proto[name] (http://localhost:4200/polyfills.bundle.js:7142:17)
at Anonymous function (http://localhost:4200/vendor.bundle.js:63666:13)
at Observable.prototype._trySubscribe (http://localhost:4200/vendor.bundle.js:4172:13)",
Symbol(observable)_h.fo48yw1o6i8: undefined,
Symbol(rxSubscriber)_g.fo48yw1o6i8: undefined
我究竟做错了什么?