【发布时间】:2017-01-31 20:43:35
【问题描述】:
我有一个 Angular 2 应用程序,最初在 Internet Explorer 版本 10 和 11 中遇到问题,如我在此处的帖子中所述:Angular 2 Release (2.0.1) Internet Explorer (SystemJS) Syntax Error。
由于某种原因,该错误消失了(可能来自该问题的答案),但现在我收到以下错误:
TypeError: Object doesn't support this action
at MyAppService.prototype.myFunction(eval code:64:9)
at Anonymous function (eval code:359:21)
at SafeSubscriber.prototype.__tryOrUnsub (eval code:223:13)
at SafeSubscriber.prototype.next (eval code:172:17)
at Subscriber.prototype._next (eval code:125:9)
at Subscriber.prototype.next (eval code:89:13)
at MapSubscriber.prototype._next (eval code:83:9)
at Subscriber.prototype.next (eval code:89:13)
at onLoad (eval code:1230:25)
at ZoneDelegate.prototype.invokeTask (http://localhost:56159/node_modules/zone.js/dist/zone.js:234:17)
MyAppService 是我创建的服务,myFunction 是在该服务中定义的函数,我从我的组件调用。
虽然我希望这个问题可能与垫片有关 - 我同时加载了 es-5 和 es-6:
<script src="./node_modules/es5-shim/es5-shim.js"></script>
<script src="./node_modules/es6-shim/es6-shim.js"></script>
今天早些时候通过 npm 下载,尤其是我的其他 Angular 脚本。
该应用程序在 Chrome 和 Firefox 中都能正常运行
有什么想法吗?
【问题讨论】:
-
嘿@blubberbo,你是怎么解决这个问题的?
-
@DanielKucal 你知道,我的注意力从那个项目转移到了另一个项目,我已经有一段时间没有看它了。我想答案是我不太确定。抱歉,我无法提供更多帮助!
-
我明白了,谢谢你的回答
标签: angular