IE 11 在尝试调用 HTTP get 请求时给出 "invalid calling object"

IE 11 giving "invalid calling object" when try to call HTTP get request

我正在使用 Angular 5 和 HttpClient 发出 HTTP 请求。当我尝试在 google chrome 中调用 GET 请求时它工作正常,但在 IE 11 中它给出错误 "invalid calling object".

import { HttpClient } from '@angular/common/http';

 this.httpClient.get(url).subscribe(
  (response) => {
     console.log(response);
  },
  (err) => {
    console.log(err);
  }
)

在我的 index.html 文件中,pace.min.js 库在那里,它在 Angular 区域之前加载。因此在尝试调用任何 HTTP 请求时都会出错。我从 index.html 文件中删除了这个库。它解决了我的问题。