Nativescript Vue RadSideDrawer 未定义
Nativescript Vue RadSideDrawer undefined
我尝试创建启动 RadSideDrawer 示例 https://play.nativescript.org/?template=play-vue&id=AZnAQ0
它在 playground 上运行良好,但是当我用
构建它时
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
我做错了什么?
首先我们需要使用以下命令构建应用程序
tns 构建 android --bundle
一旦构建成功,我们必须运行下面的命令
tns 运行 android --bundle
需要更新tns
tns update next
我尝试创建启动 RadSideDrawer 示例 https://play.nativescript.org/?template=play-vue&id=AZnAQ0
它在 playground 上运行良好,但是当我用
构建它时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
我做错了什么?
首先我们需要使用以下命令构建应用程序
tns 构建 android --bundle
一旦构建成功,我们必须运行下面的命令
tns 运行 android --bundle
需要更新tns
tns update next