NativeScript / playground-feedback

Feedback for NativeScript Playground
Apache License 2.0
16 stars 1 forks source link

Error when trying to preview Getting started turorial #193

Open DeanMcAuleyH opened 4 years ago

DeanMcAuleyH commented 4 years ago

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?

Which browser are you using?

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:

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