playground-feedback icon indicating copy to clipboard operation
playground-feedback copied to clipboard

Error when trying to preview Getting started turorial

Open DeanMcAuleyH opened this issue 4 years ago • 0 comments

Dear friend, we want to specify that this repo is {N} Playground related. Please use it to provide feedback or report an issue related to {N} Playground only. If your issue is related to {N} itself please report it to the {N} repo or search for a solution in Stack Overflow. All issues which are not related to {N} Playground will be closed.

We appreciate your feedback! While we are doing all we can to take care of every issue, sometimes we get overwhelmed. Because of that, we will consider issues that are not constructive or problems that cannot be reproduced "dead". Additionally, we will treat feature requests or bug reports with unanswered questions regarding the behavior/reproduction for more than 20 days "dead". All "dead" issues will get closed.

Please, provide the details below:

Did you search for the problem in other open issues in this repo?

Yes

Tell us about the problem

When trying to run step 2 of lesson 1 login screen tutorial I am get a blank screen the first time I preview and the below error when I refresh

Did you try it outside of {N} Playground?

  • Yes - but the behavior is different (give more information) Ran full project from sample groceries github and ran correctly

Which browser are you using?

  • Chrome

Are there any errors/warnings logged in your browser console?

no

Which platform(s) does your issue occur on?

  • Android

Are there any entries logged in the Device Logs tab?

[Galaxy S8]: An uncaught Exception occurred on "main" thread. Error running script /data/user/0/org.nativescript.preview/files/internal/livesync.js Error: Cannot find android activity callbacks.

StackTrace: ZoneAwareError(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:1298:33) at _resetRootView(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/application.js:152:15) at NativeScriptPlatformRef._livesync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/platform-common.js:273:23) at global.__onLiveSyncCore(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/platform-common.js:105:23) at livesync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/application-common.js:81:9) at __onLiveSync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/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:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7050) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965) [Galaxy S8]: An uncaught Exception occurred on "main" thread. Error running script /data/user/0/org.nativescript.preview/files/internal/livesync.js Error: Cannot find android activity callbacks.

StackTrace: ZoneAwareError(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:1298:33) at _resetRootView(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/application.js:152:15) at NativeScriptPlatformRef._livesync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/platform-common.js:273:23) at global.__onLiveSyncCore(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/platform-common.js:105:23) at livesync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/application-common.js:81:9) at __onLiveSync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/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:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7050) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965) [Galaxy S8]: An uncaught Exception occurred on "main" thread. Error running script /data/user/0/org.nativescript.preview/files/internal/livesync.js Error: Cannot find android activity callbacks.

StackTrace: ZoneAwareError(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:1298:33) at _resetRootView(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/application.js:152:15) at NativeScriptPlatformRef._livesync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/platform-common.js:273:23) at global.__onLiveSyncCore(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/angular/platform-common.js:105:23) at livesync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/application-common.js:81:9) at __onLiveSync(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/application/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:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7050) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

Please provide the following information shown in the devices tab in the playground:

  • Galaxy S8
  • 9
  • 1.30.0
  • 6.5.0

Please tell us how to recreate the issue with as much detail as possible.

The best approach would be to get your code running in the {N} Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there. https://play.nativescript.org/?template=groceries-ng&tutorial=groceries-ng&id=DtLHvv

Just preview it

DeanMcAuleyH avatar Aug 30 '20 22:08 DeanMcAuleyH