You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading a project to the latest NativeScript 4.2.2 and Angular 6.1.0. I am seeing this error on Android once I use the logView() method. Here is the full package.json of dependencies:
The issue seams to be caused by an change in the way the ngOnInit is being resolved in the newest version of Angular. What happens is that the call of the ngOnInit is called before the launchEvent lifecycle event is raised in which I am calling the initalize(). The callbacks in latest versions of Angular is:
the bootstrapped component's ngOnInit
after that the launchEvent of the application lifecycle
And it used to be:
the launchEvent of the application lifecycle
after that the bootstrapped component's ngOnInit
The text was updated successfully, but these errors were encountered:
VladimirAmiorkov
changed the title
'ERROR TypeError: Cannot read property 'setScreenName' of undefined' after upgrading to NativeScript 4.2.2
'ERROR TypeError: Cannot read property 'setScreenName' of undefined' after upgrading to Angular 6.1.0
Aug 27, 2018
Hi,
After upgrading a project to the latest NativeScript 4.2.2 and Angular 6.1.0. I am seeing this error on Android once I use the
logView()
method. Here is the full package.json of dependencies:Error
The issue seams to be caused by an change in the way the
ngOnInit
is being resolved in the newest version of Angular. What happens is that the call of thengOnInit
is called before the launchEvent lifecycle event is raised in which I am calling theinitalize()
. The callbacks in latest versions of Angular is:ngOnInit
And it used to be:
ngOnInit
The text was updated successfully, but these errors were encountered: