user interface - How create a Visual Component without create a new plugin -


i'm developing simple component use in application, it's side menu based on examples proposed nativescript, see error below, i'm doing , wrong , how best method extend visual components in nativescript without creating new plugin.

code: https://gist.github.com/carlosdelfino/808eaeb17c7f362e1a5e4f810257e8cc

an uncaught exception occurred on "main" thread. java.lang.runtimeexception: unable start activity componentinfo{br.com.fullservice.mobileapp.mobile.client/com.tns.nativescriptactivity}: com.tns.nativescriptexception:  calling js method oncreate failed  error: building ui xml. @file:///app/pages/home/home.xml:35:7  > module '/data/data/br.com.fullservice.mobileapp.mobile.client/files/app/widgets/menu' not found element 'widgets/menu:sidemenu'.    > unexpected identifier file: "file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 195, column: 20  stacktrace:      frame: function:'scopeerror', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 17, column: 24     frame: function:'sourceerror', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 28, column: 23     frame: function:'', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 214, column: 17     frame: function:'', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 195, column: 33     frame: function:'', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 148, column: 13     frame: function:'easysaxparser.parse', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/js-libs/easysax/easysax.js', line: 751, column: 23     frame: function:'xmlparser.parse', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 195, column: 22     frame: function:'xmlstringparser.parse', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 201, column: 27     frame: function:'parseinternal', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 46, column: 11     frame: function:'loadpage', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 130, column: 27     frame: function:'pagefrombuilder', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 128, column: 26  ...          @ android.app.activitythread.performlaunchactivity(activitythread.java:2195)     @ android.app.activitythread.handlelaunchactivity(activitythread.java:2245)     @ android.app.activitythread.access$800(activitythread.java:135)     @ android.app.activitythread$h.handlemessage(activitythread.java:1196)     @ android.os.handler.dispatchmessage(handler.java:102)     @ android.os.looper.loop(looper.java:136)   ...        error: building ui xml. @file:///app/pages/home/home.xml:35:7  > module '/data/data/br.com.fullservice.mobileapp.mobile.client/files/app/widgets/menu' not found element 'widgets/menu:sidemenu'.    > unexpected identifier file: "file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 195, column: 20  stacktrace:      frame: function:'scopeerror', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 17, column: 24     frame: function:'sourceerror', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/utils/debug.js', line: 28, column: 23     frame: function:'', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 214, column: 17     frame: function:'', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 195, column: 33     frame: function:'', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 148, column: 13     frame: function:'easysaxparser.parse', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/js-libs/easysax/easysax.js', line: 751, column: 23     frame: function:'xmlparser.parse', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/xml/xml.js', line: 195, column: 22     frame: function:'xmlstringparser.parse', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 201, column: 27     frame: function:'parseinternal', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 46, column: 11     frame: function:'loadpage', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/builder/builder.js', line: 130, column: 27     frame: function:'pagefrombuilder', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 128, column: 26     frame: function:'resolvepagefromentry', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 112, column: 20     frame: function:'framebase.navigate', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 180, column: 20     frame: function:'activitycallbacksimplementation.oncreate', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', line: 706, column: 19     frame: function:'nativescriptactivity.oncreate', file:'file:///data/data/br.com.fullservice.mobileapp.mobile.client/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', line: 20, column: 25       @ com.tns.runtime.calljsmethodnative(native method)     @ com.tns.runtime.dispatchcalljsmethodnative(runtime.java:1043)     @ com.tns.runtime.calljsmethodimpl(runtime.java:925)     @ com.tns.runtime.calljsmethod(runtime.java:912)     @ com.tns.runtime.calljsmethod(runtime.java:896)     @ com.tns.runtime.calljsmethod(runtime.java:888)     @ com.tns.nativescriptactivity.oncreate(nativescriptactivity.java:13)     @ android.app.activity.performcreate(activity.java:5425)     @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1090)     @ android.app.activitythread.performlaunchactivity(activitythread.java:2159)     ... 11 more 


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -