Uncaught TypeError:无法读取backend.js中未定义的属性“ bind”

时间:2019-07-31 06:08:08

标签: javascript angular typescript

在加载http://localhost:4200时,我在Angular 8项目中遇到此错误

Uncaught TypeError: Cannot read property 'bind' of undefined
        at new t (backend.js:31)
        at Object.<anonymous> (backend.js:31)
        at Object.<anonymous> (backend.js:31)
        at r (backend.js:1)
        at Object.<anonymous> (backend.js:31)
        at r (backend.js:1)
        at Object.<anonymous> (backend.js:31)
        at r (backend.js:1)
        at Object.<anonymous> (backend.js:31)
        at r (backend.js:1)

this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()

2 个答案:

答案 0 :(得分:1)

确保 在调用Shown方法之前先定义FrmLogin

答案 1 :(得分:0)

您自己的代码或项目的依赖项之一必须使用clearImmediate,这仅是MSIE。

https://developer.mozilla.org/en-US/docs/Web/API/Window/clearImmediate