未定义Nativescript Vue RadSideDrawer

时间:2018-11-02 19:07:56

标签: nativescript nativescript-telerik-ui nativescript-vue

我尝试创建启动RadSideDrawer示例https://play.nativescript.org/?template=play-vue&id=AZnAQ0

它在操场上很好用,但是当我用它建造时

tns run android --bundle

我遇到错误

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

TypeError: Could not load view for: nativeradsidedrawer. TypeError: Cannot read property 'extend' of undefined
File: "file:///data/data/org.nativescript.application/files/app/vendor.js, line: 59885, column: 6

StackTrace: 
    Frame: function:'getViewClass', file:'file:///data/data/org.nativescript.application/files/app/vendor.js', line: 63313, column: 11

我做错了什么?

2 个答案:

答案 0 :(得分:0)

首先,我们需要使用以下命令来构建应用

tns构建android --bundle

构建成功后,我们必须在命令下运行

tns运行android --bundle

Android API 25 Emulator

答案 1 :(得分:0)

需要更新tns

tns update next