NativeScript/nativescript-angular

Sample Hello World App will not reload in PlayGround

Opened this issue · 0 comments

Environment

  • Android Runtime: 8.0.0
  • NativeScript-Angular: 8.0.1
  • Angular: 11.2.6

I'm getting my feet wet with NativeScript with Angular and have created a new blank Hello World projects using the ns create command.

After creating the project, I run the ns preview command as instructed when the create process has finished. The QR code is scanned on the Adnroid phone using the NativeScript Playground App (Both Nativescript Playground and Nativescript preview are installed on the Anrdoid device)

Up to this point everything works great, the app is built and appears on the device in the playground app.

However, if I now make a change to the app, the following error results:

LOG from device Galaxy S20 5G: Error: Could not load CSS from app.css: Error: require's first parameter > should be string
LOG from device Galaxy S20 5G: An uncaught Exception occurred on "main" thread.
Error running script /data/user/0/org.nativescript.preview/files/internal/livesync.js
TypeError: Cannot read property '_callbacks' of undefined

And the full stack trace is below:

Frame.reloadPage(file:///data/user/0/org.nativescript.preview/files/app/tns_modules/@nativescript/core/u>i/frame/frame.js:69:33)
at >livesync(file:///data/user/0/org.nativescript.preview/files/app/tns_modules/@nativescript/core/applicati>on/application-common.js:81:9)
at >__onLiveSync(file:///data/user/0/org.nativescript.preview/files/app/tns_modules/@nativescript/core/appli>cation/application.js:205:26)
at (/data/user/0/org.nativescript.preview/files/internal/livesync.js:2:9)
at com.tns.Runtime.runScript(Native Method)
at com.tns.Runtime.access$2100(Runtime.java:39)
at com.tns.Runtime$2.run(Runtime.java:699)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Any idea why the sample Hello world app is running into the problems above?

Thanks
Musaffar