nativescript-vue / nativescript-vue-template

NativeScript + Vue.js template
MIT License
78 stars 9 forks source link

Got error when trying app-with-list-view #5

Closed ariona closed 6 years ago

ariona commented 6 years ago
An uncaught Exception occurred on "main" thread.
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.hellonsvue/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: 
Calling js method onCreate failed

TypeError: Cannot read property 'getKeyedTemplates' of undefined
File: "file:///data/data/org.nativescript.hellonsvue/files/app/tns_modules/nativescript-vue/dist/index.js, line: 2137, column: 6

StackTrace: 
    Frame: function:'mounted', file:'file:///data/data/org.nativescript.hellonsvue/files/app/tns_modules/nativescript-vue/dist/index.js', line: 10798, column: 22
    Frame: function:'callHook', file:'file:///data/data/org.nativescript.hellonsvue/files/app/tns_modules/nativescript-vue/dist/index.js', line: 3217, column: 21
    Frame: function:'insert', file:'file:///data/data/org.nativescript.hellonsvue/files/app/tns_modules/nativescript-vue/dist/index.js', line: 9681, column: 7
    Frame: function:'invokeInsertHook', file:'file:///data/data/org.nativescript.hellonsvue/files/app/
VladimirAmiorkov commented 6 years ago

Hi @tjvantoll maybe change the <template>...</template> tags to <v-template>...</v-template> tags in your app.

tjvantoll commented 6 years ago

Good catch @VladimirAmiorkov! I just sent a PR (#6).

VladimirAmiorkov commented 6 years ago

Ohh totally miss mentioned you in this comment @tjvantoll :) but it worked out good. I wanted to mention @ariona

ariona commented 6 years ago

Will try it tomorrow 😉