TypeError: Object(…) is not a function at eval (eventtargetinterruptsource.js) while using ng-idle/ng-keepalive in angular 8

huangapple go评论60阅读模式
英文:

TypeError: Object(...) is not a function at eval (eventtargetinterruptsource.js) while using ng-idle/ng-keepalive in angular 8

问题

I want to use ng-idle/ng-keepalive in my angular 8 project, I tried installing many versions of them, but in console it is showing this error only

Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
at eval (eventtargetinterruptsource.js:39:70)

Can you tell me which version should i install that would be compatible with Angular version 8

I installed the version for ng-idle/keepalive by using this version guide

英文:

I want to use ng-idle/ng-keepalive in my angular 8 project, I tried installing many versions of them, but in console it is showing this error only

Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
at eval (eventtargetinterruptsource.js:39:70)

Can you tell me which version should i install that would be compatible with Angular version 8

I installed the version for ng-idle/keepalive by using this version guide

答案1

得分: 0

你应该使用 v8.0.0-beta.4。

你可以通过以下步骤检查大多数 npm 库的兼容版本。

  1. 前往 GitHub 源代码仓库。在这个例子中,它是 https://github.com/moribvndvs/ng2-idle
  2. 打开 package.json 文件,查看这个库最新版本兼容的 Angular 版本是哪个。 "dependencies" -> "@angular/core"
  3. 如果不是你想要的版本,你可以尝试从 Switch branches/tags 下拉菜单中切换到另一个标签。TypeError: Object(…) is not a function at eval (eventtargetinterruptsource.js) while using ng-idle/ng-keepalive in angular 8
英文:

You should use v8.0.0-beta.4.

You can check the compatible version of most of npm libraries by following these steps.

  1. Go to GitHub source repository. In this case, it's https://github.com/moribvndvs/ng2-idle
  2. Open package.json file and check which version of angular is this library's latest version compatible with. "dependencies" -> "@angular/core"
  3. If it is not the version you want, you try to switch to another tag from Switch branches/tags dropdown.TypeError: Object(…) is not a function at eval (eventtargetinterruptsource.js) while using ng-idle/ng-keepalive in angular 8

huangapple
  • 本文由 发表于 2023年7月10日 10:47:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76650399.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定