Quick tip: When working in Angular 2 if you get an error that looks like:
EXCEPTION: TypeError: Cannot read property ‘visitStatement’ of undefined
Or:
EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot read property ‘visitStatement’ of undefined
Try checking your code for an empty ‘click’ event binding (<component (click)=""></component>
). If the event is left empty it can throw that relatively nondescript error.
You have no idea how much time debugging that you just saved me. Thank you very much.
Awesome! I’m very glad to hear it!
You have no idea how much time debugging that you just saved me. Thank you very much.
Awesome! I’m very glad to hear it!
Thank youuuuuuuuuu!
Thank youuuuuuuuuu!
You just made my day. The actual error stack trace gives no clue what so ever.
You just made my day. The actual error stack trace gives no clue what so ever.