Angular2 - raven-js doesen’t logs all errors
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Log in sentry from angular2 looks like:
TypeError: Cannot read property 'length' of undefined
at _View_CommentComponent0.AppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9470:18)
at _View_CommentComponent0.DebugAppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9575:48)
at _View_WallPostComponent6.AppView.detectViewChildrenChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9496:23)
at _View_WallPostComponent6.AppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9470:18)
at _View_WallPostComponent6.DebugAppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9575:48)
at _View_WallPostComponent0.AppView.detectContentChildrenChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9488:23)
at _View_WallPostComponent0.AppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9470:18)
at _View_WallPostComponent0.DebugAppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9575:48)
at _View_WallPostComponent_Host0.AppView.detectViewChildrenChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9496:23)
at _View_WallPostComponent_Host0.AppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9470:18)
at _View_WallPostComponent_Host0.DebugAppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9575:48)
at _View_AppComponent0.AppView.detectContentChildrenChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9488:23)
at _View_AppComponent0.AppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9470:18)
at _View_AppComponent0.DebugAppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9575:48)
at _View_AppComponent_Host0.AppView.detectViewChildrenChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9496:23)
at _View_AppComponent_Host0.AppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9470:18)
at _View_AppComponent_Host0.DebugAppView.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:9575:48)
at ViewRef_.detectChanges(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:7582:24)
at eval(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:7003:88)
at ApplicationRef_.tick(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:7003:42)
at eval(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6944:109)
at ZoneDelegate.invoke(eval at <anonymous> (http://localhost:8080/polyfills.js:2799:2), <anonymous>:232:26)
at Object.onInvoke(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6158:41)
at ZoneDelegate.invoke(eval at <anonymous> (http://localhost:8080/polyfills.js:2799:2), <anonymous>:231:32)
at Zone.run(eval at <anonymous> (http://localhost:8080/polyfills.js:2799:2), <anonymous>:114:43)
at NgZoneImpl.runInner(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6185:75)
at NgZone.run(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6414:70)
at Object.next(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6944:85)
at SafeSubscriber.schedulerFn [as _next](eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6088:74)
at SafeSubscriber.__tryOrUnsub(eval at <anonymous> (http://localhost:8080/vendor.js:130:2), <anonymous>:223:16)
at SafeSubscriber.next(eval at <anonymous> (http://localhost:8080/vendor.js:130:2), <anonymous>:172:22)
at Subscriber._next(eval at <anonymous> (http://localhost:8080/vendor.js:130:2), <anonymous>:125:26)
at Subscriber.next(eval at <anonymous> (http://localhost:8080/vendor.js:130:2), <anonymous>:89:18)
at EventEmitter.Subject.next(eval at <anonymous> (http://localhost:8080/vendor.js:106:2), <anonymous>:55:25)
at EventEmitter.emit(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6080:80)
at NgZone._checkStable(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6324:48)
at NgZoneImpl.onLeave(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6296:27)
at Object.onInvokeTask(eval at <anonymous> (http://localhost:8080/vendor.js:100:2), <anonymous>:6152:31)
at ZoneDelegate.invokeTask(eval at <anonymous> (http://localhost:8080/polyfills.js:2799:2), <anonymous>:264:40)
at Zone.runTask(eval at <anonymous> (http://localhost:8080/polyfills.js:2799:2), <anonymous>:154:47)
at XMLHttpRequest.ZoneTask.invoke(eval at <anonymous> (http://localhost:8080/polyfills.js:2799:2), <anonymous>:335:33)
What is the expected behavior?
Log in this form is unclear and I can't find where is problem. Log is missing of other exceptions comming directly from agnular2 like "Error in comment.component template line 8:16". Without this information i can only know type of problem + more or less where the problem is. When raven-js is disabled I can read full error log in developer console and diagnose problem.
(And yes, I know, my english is terrible ;) )
@sierran – Raven reports what Angular 2 provides. There's not much we can do here if this is the stack trace.
@sierran – if you can put together a limited demo that exhibits this behavior, I would be glad to debug, but otherwise I have very little to go on and will be forced to close this issue.
Closing because of lack of information.
Sorry i did not answer so long but i was on holiday The problem magically solved with angular ^2.4.0 and raven-js ^3.11.0. I do not know where the problem was but after the package updates everything went back to normal and the error log is full. Thank you for your interest in the topic.