英文:
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 库的兼容版本。
- 前往 GitHub 源代码仓库。在这个例子中,它是 https://github.com/moribvndvs/ng2-idle
- 打开
package.json
文件,查看这个库最新版本兼容的 Angular 版本是哪个。"dependencies" -> "@angular/core"
- 如果不是你想要的版本,你可以尝试从
Switch branches/tags
下拉菜单中切换到另一个标签。
英文:
You should use v8.0.0-beta.4.
You can check the compatible version of most of npm libraries by following these steps.
- Go to GitHub source repository. In this case, it's https://github.com/moribvndvs/ng2-idle
- Open
package.json
file and check which version of angular is this library's latest version compatible with."dependencies" -> "@angular/core"
- If it is not the version you want, you try to switch to another
tag
fromSwitch branches/tags
dropdown.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论