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
{{ message }}
This repository was archived by the owner on Jul 7, 2022. It is now read-only.
I have included the require("nativescript-platform-css") within the main.ts file. When I try to run the application an exception is thrown in the plugin (line 94).
// Setup EventsPage.on(Page.navigatingToFirst,setDevice);// Exception is thrown here (line 94).Page.on(Page.showingModallyFirst,setDevice);
Exception:
JS ERROR TypeError: Events name(s) must be string.
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: Events name(s) must be string.
When I debug, the value of Page.navigatingToFirst is undefined. I'm not quite sure what the root of this issue is.
I am able to get the plugin to work by manually updating the event setup code in platformcss.js from this:
I have included the
require("nativescript-platform-css")within themain.tsfile. When I try to run the application an exception is thrown in the plugin (line 94).Exception:
When I debug, the value of
Page.navigatingToFirstis undefined. I'm not quite sure what the root of this issue is.I am able to get the plugin to work by manually updating the event setup code in
platformcss.jsfrom this:To this:
Is that other event no longer available in the latest NS?