Playground broken on Oreo?


#1

I receive errors when creating a new playground project and trying to run it on my Galaxy S8 running Android 8.0.0.
I have verified this behavior on a colleagues device also (also an S8 running 8.0.0)
See below:

ERROR Error: Uncaught (in promise): Error: com.tns.NativeScriptException: Failed to find module: "nativescript-pro-ui/sidedrawer/angular", relative to: app/tns_modules/
[Ian's S8]: com.tns.Module.resolvePathHelper(Module.java:146)
[Ian's S8]: com.tns.Runtime$2.run(Runtime.java:551)
[Ian's S8]: android.os.Handler.handleCallback(Handler.java:789)
[Ian's S8]: com.tns.Runtime.access$2200(Runtime.java:34)
[Ian's S8]: android.os.Looper.loop(Looper.java:164)
[Ian's S8]: android.os.Handler.dispatchMessage(Handler.java:98)
[Ian's S8]: android.app.ActivityThread.main(ActivityThread.java:6938)
[Ian's S8]: java.lang.reflect.Method.invoke(Native Method)
[Ian's S8]: com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
[Ian's S8]: com.tns.Runtime.runScript(Native Method)
[Ian's S8]: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
[Ian's S8]: com.tns.Module.resolvePath(Module.java:55)
[Ian's S8]: com.tns.Module.resolvePath(Module.java:55)
[Ian's S8]: com.tns.Runtime.runScript(Native Method)
[Ian's S8]: com.tns.Module.resolvePathHelper(Module.java:146)
[Ian's S8]: Error: com.tns.NativeScriptException: Failed to find module: "nativescript-pro-ui/sidedrawer/angular", relative to: app/tns_modules/
[Ian's S8]: com.tns.Runtime.access$2200(Runtime.java:34)
[Ian's S8]: com.tns.Runtime$2.run(Runtime.java:551)
[Ian's S8]: android.os.Handler.handleCallback(Handler.java:789)
[Ian's S8]: android.os.Looper.loop(Looper.java:164)
[Ian's S8]: android.os.Handler.dispatchMessage(Handler.java:98)
[Ian's S8]: android.app.ActivityThread.main(ActivityThread.java:6938)
[Ian's S8]: java.lang.reflect.Method.invoke(Native Method)
[Ian's S8]: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
[Ian's S8]: com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
[Ian's S8]: at require (:1:266)
[Ian's S8]: at Object. (file:///data/data/org.nativescript.preview/files/app/home/home.module.js:5:17)
[Ian's S8]: at file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/globals/globals.js:92:32
[Ian's S8]: at require (:1:266)
[Ian's S8]: at new ZoneAwarePromise (file:///data/data/org.nativescript.preview/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:777:29)
[Ian's S8]: at Object.import (file:///data/data/org.nativescript.preview/files/app/tns_modules/tns-core-modules/globals/globals.js:90:16)
[Ian's S8]: at SystemJsNgModuleLoader.loadAndCompile (file:///data/data/org.nativescript.preview/files/app/tns_modules/@angular/core/bundles/core.umd.js:6580:29)
[Ian's S8]: at SystemJsNgModuleLoader.load (file:///data/data/org.nativescript.preview/files/app/tns_modules/@angular/core/bundles/core.umd.js:6564:60)
[Ian's S8]: at RouterConfigLoader.loadModuleFactory (file:///data/data/org.nativescript.preview/files/app/tns_modules/@angular/router/bundles/router.umd.js:4565:72)
[Ian's S8]: at RouterConfigLoader.load (file:///data/data/org.nativescript.preview/files/app/tns_modules/@angular/router/bundles/router.umd.js:4545:52)
[Ian's S8]: at MergeMapSubscriber.project (file:///data/data/org.nativescript.preview/files/app/tns_modules/@angular/router/bundles/router.umd.js:2037:74)
[Ian's S8]: at MergeMapSubscriber._next (file:///data/data/org.nativescript.preview/files/app/tns_modules/rxjs/operators/mergeMap.js:112:18)
[Ian's S8]: at MergeMapSubscriber._tryNext (file:///data/data/org.nativescript.preview/files/app/tns_modules/rxjs/operators/mergeMap.js:122:27)
[Ian's S8]: at ScalarObservable._subscribe (file:///data/data/org.nativescript.preview/files/app/tns_modules/rxjs/observable/ScalarObservable.js:49:24)
[Ian's S8]: at MergeMapSubscriber.Subscriber.next (file:///data/data/org.nativescript.preview/files/app/tns_modules/rxjs/Subscriber.js:90:18)

#2

From what I know, playground does not support the inclusion of plugins with native counterparts, like the nativescript-pro-ui components.


#3

It does as I’ve been using it prior to upgrading my phone to Android 8. Also it list them as available components in the left hand nav bar when you open up the playground.


#4

nativescript-pro-ui is already a part of playground. so that is an exception. @Pete.K
All pro ui components work in Playground.


#5

Looks like Playground is now migrated to splitted packages. Try updating the path, nativescript-pro-ui/sidedrawer/angular should be now nativescript-ui-sidedrawer/angular.


#6

Tried that and I get the following error.
home/home.module.ts (3, 48): Cannot find module 'nativescript-ui-sidedrawer/angular'


#7

By default any new playground template follows the updated path and it works for me. Try sharing your link if that still doesn’t.


#8

Just tried it there and the default template now works. It wasn’t about an hour ago!


#9

Yes, looks like it is recently updated. Make sure your fiddle and preview application in phone everything is in sync.