Angular 2最终版本IE11 TypeError:对象不';我不支持这一行动

Angular 2最终版本IE11 TypeError:对象不';我不支持这一行动,angular,Angular,我有一个Angular 2应用程序,最初在Internet Explorer版本10和11中遇到问题,如我在此处的帖子中所述: 出于某种原因,这个错误已经消失了(可能来自于那个问题上的答案),但现在我得到了以下错误: TypeError: Object doesn't support this action at MyAppService.prototype.myFunction(eval code:64:9) at Anonymous function (eval code:359

我有一个Angular 2应用程序,最初在Internet Explorer版本10和11中遇到问题,如我在此处的帖子中所述:

出于某种原因,这个错误已经消失了(可能来自于那个问题上的答案),但现在我得到了以下错误:

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中都运行良好


有什么想法吗?

如果有人面临类似问题,您需要包括url polyfill,因为IE不支持url。npm i url polyfill并将其导入polfills.ts文件。这就是我的问题。

嘿@blubberbo,你是如何解决这个问题的?@DanielKucal你知道,我的注意力从那个项目转移到了另一个项目,我有一段时间没看它了。我想答案是我不是很确定。对不起,我帮不了你了!我明白了,谢谢你的回答