Uncaught exception in promise when when trying to use nested components

前端 未结 7 1826
醉话见心
醉话见心 2021-01-03 20:56

I am getting this exception when trying to use nested components:

EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot set property \'endSourceSpan\' o         


        
7条回答
  •  无人及你
    2021-01-03 21:03

    I had a similar issue. The error I received was "EXCEPTION: TypeError: Cannot set property 'endSourceSpan' of null" (see image below). In my template, I missed the ending ">" for the div (see image below). Once I added the ">", the error went away.

    I believe this error occurs for any malformed HTML in an Angular 2 template.

提交回复
热议问题