shripalsoni04 / nativescript-angular-drawer-template

A starter project to quickly create nativescript angular project with drawer pages.
MIT License
46 stars 9 forks source link

when app load i get this error and toggle button not work #8

Closed ghost closed 7 years ago

ghost commented 7 years ago
EXCEPTION: Uncaught (in promise): TypeError: v._nativeView.setCornerRadius is not a function
JS: ORIGINAL STACKTRACE:
JS: Error: Uncaught (in promise): TypeError: v._nativeView.setCornerRadius is not a function
JS:     at resolvePromise (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:416:31)
JS:     at /data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:393:13
JS:     at ZoneDelegate.invoke (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:190:28)
JS:     at Object.onInvoke (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/@angular/core/bundles/core.umd.js:6206:41)
JS:     at ZoneDelegate.invoke (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:189:34)
JS:     at Zone.run (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:83:43)
JS:     at /data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:449:57
JS:     at ZoneDelegate.invokeTask (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:223:37)
JS:     at Object.onInvokeTask (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/@angular/core/bundles/core.umd.js:6197:41)
JS:     at ZoneDelegate.invokeTask (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/nativescript-angular/zone.js/dist/zone-nativescript.js:222:42)
JS: Unhandled Promise rejection: v._nativeView.setCornerRadius is not a function ; Zone: angular ; Task: Promise.then ; Value: TypeError: v._nativeView.setCornerRadius is not a function TypeError: v._nativeView.setCornerRadius is not a function
JS:     at StylePropertyChangedHandler.ImageStyler.setBorderRadiusProperty [as _applyProperty] (/data/data/org.nativescript.sidedrawer/files/app/tns_modules/ui/image/image.js:72:23)
mahaboobshaik commented 7 years ago

i am also facing same issue... Any fix for this?

hugohomesquita commented 7 years ago

i am also facing same issue... Any fix for this?

shripalsoni04 commented 7 years ago

I have upgraded versions of various dependencies of this starter template. I have tested this with latest nativescript (v2.4.2) and tns-core-modules (v2.4.4) on both Android and iOS. It is working without any issues. The new version of this starter template is 1.2.0

Can you please test it again with this new version by executing below commnad: tns create my-project-name --template nativescript-angular-drawer-template

shripalsoni04 commented 7 years ago

Assuming this to be resolved. Feel free to reopen if issue is still there.