I am getting this exception when trying to use nested components:
EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot set property \'endSourceSpan\' o
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.