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
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