sharesoon
sharesoon
  • 发布:2020-04-27 11:36
  • 更新:2020-11-14 14:32
  • 阅读:1954

uni-app中安装cube-ui后app端真机运行出现错误

分类:uni-app

<div class="cube-checkbox" :class="_containerClass" :data-pos="position">
11:35:51.199 <label class="cube-checkbox-wrap" :class="_wrapClass">
11:35:51.201 <input class="cube-checkbox-input" type="checkbox" :disabled="computedOption.disabled" v-model="checkValue">
11:35:51.203 <span class="cube-checkbox-ui" :class="_borderIconClass">
11:35:51.204 <i :class="_rightIconClass"></i>
11:35:51.205 </span>
11:35:51.206 <span class="cube-checkbox-label">
11:35:51.208 <slot>{{computedOption.label}}</slot>
11:35:51.208 </span>
11:35:51.209 </label>
11:35:51.210 </div>
11:35:51.242 <div class="cube-radio" :class="_containerClass" :data-pos="position">
11:35:51.243 <label class="cube-radio-wrap" :class="_wrapClass">
11:35:51.244 <input
11:35:51.244 class="cube-radio-input"
11:35:51.245 type="radio"
11:35:51.246 :disabled="option.disabled"
11:35:51.247 v-model="radioValue"
11:35:51.247 :value="computedOption.value"
11:35:51.248 />
11:35:51.248 <span class="cube-radio-ui cubeic-round-border">
11:35:51.249 <i></i>
11:35:51.250 </span>
11:35:51.251 <slot>
11:35:51.252 <span class="cube-radio-label">{{ computedOption.label }}</span>
11:35:51.252 </slot>
11:35:51.253 </label>
11:35:51.255 </div>
11:35:51.569 <div class="cube-switch">
11:35:51.569 <input class="cube-switch-input" type="checkbox" v-model="checkboxValue" :disabled="disabled">
11:35:51.570 <i class="cube-switch-ui"></i>
11:35:51.571 <span class="cube-switch-label"><slot></slot></span>
11:35:51.572 </div>
11:35:53.708 App平台 v3 模式暂不支持在 js 文件中引用"../../common/stylus/index.styl"
11:35:56.293 DONE Build complete. Watching for changes...
11:35:56.294 项目 'fastSign' 编译成功。
11:35:56.295 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
11:35:56.298 TypeError: Cannot read property 'value' of undefined
11:35:56.298 at genVModel (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\app\service.js:186:78)
11:35:56.301 at Array.genData (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\app\service.js:196:3)
11:35:56.303 at genData$3 (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4167:32)
11:35:56.305 at genElement (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4011:16)
11:35:56.306 at genNode (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4423:12)
11:35:56.386 at E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:55
11:35:56.388 at Array.map (<anonymous>)
11:35:56.389 at genChildren (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:29)
11:35:56.391 at genElement (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4014:49)
11:35:56.391 at genNode (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4423:12)
11:35:56.393 at E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:55
11:35:56.394 at Array.map (<anonymous>)
11:35:56.395 at genChildren (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:29)
11:35:56.396 at genElement (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4014:49)
11:35:56.397 at generate (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:3979:20)
11:35:56.399 at baseCompile (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4882:14)
11:35:56.399 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
11:35:56.401 TypeError: Cannot read property 'value' of undefined
11:35:56.403 at genVModel (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\app\service.js:186:78)
11:35:56.404 at Array.genData (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\app\service.js:196:3)
11:35:56.405 at genData$3 (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4167:32)
11:35:56.406 at genElement (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4011:16)
11:35:56.408 at genNode (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4423:12)
11:35:56.410 at E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:55
11:35:56.412 at Array.map (<anonymous>)
11:35:56.413 at genChildren (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:29)
11:35:56.416 at genElement (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4014:49)
11:35:56.417 at generate (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:3979:20)
11:35:56.420 at baseCompile (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4882:14)
11:35:56.420 at compile (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4853:22)
11:35:56.422 at compileTemplate (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\auto-components.js:73:15)
11:35:56.422 at compile (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\index.js:65:16)
11:35:56.423 at actuallyCompile (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)
11:35:56.424 at compileTemplate (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)
11:35:56.425 ERROR Build failed with errors.
11:35:56.872 正在建立手机连接...
11:35:57.561 手机端调试基座版本号为2.6.16,版本号相同,跳过基座更新
11:35:57.706 正在同步手机端程序文件...
11:35:59.483 同步手机端程序文件完成
11:35:59.587 正在启动HBuilder调试基座...
11:36:03.126 如手机上HBuilder调试基座未启动,请手动启动...
11:36:03.521 TypeError: Cannot read property 'value' of undefined
11:36:03.542 at genVModel (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\app\service.js:186:78)
11:36:03.563 at Array.genData (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\app\service.js:196:3)
11:36:03.584 at genData$3 (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4167:32)
11:36:03.604 at genElement (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4011:16)
11:36:03.626 at genNode (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4423:12)
11:36:03.646 at E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:55
11:36:03.688 at genChildren (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:29)
11:36:03.709 at genElement (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4014:49)
11:36:03.732 at genNode (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4423:12)
11:36:03.751 at E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:55
11:36:03.793 at genChildren (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4386:29)
11:36:03.814 at genE
11:36:03.835 at generate (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:3979:20)
11:36:03.859 at baseCompile (E:\hbulider\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-template-compiler\build.js:4882:14)
11:36:03.876 eval code
11:36:03.897 eval@[native code]
11:36:03.918 weex createInstanceContext:2332:5
11:36:03.938 webpack_require@weex createInstanceContext:79:34
11:36:03.959 eval code
11:36:03.980 eval@[native code]
11:36:04.001 weex createInstanceContext:2322:5
11:36:04.022
webpack_require
@weex createInstanceContext:79:34
11:36:04.044 eval code
11:36:04.063 eval@[native code]
11:36:04.084 weex createInstanceContext:2311:5
11:36:04.107 webpack_require@weex createInstanceContext:79:34
11:36:04.126 eval code
11:36:04.147 eval@[native code]
11:36:04.167 weex createInstanceContext:2300:5
11:36:04.188
webpack_require
@weex createInstanceContext:79:34
11:36:04.209 eval code
11:36:04.230 eval@[native code]
11:36:04.251 weex createInstanceContext:1971:5
11:36:04.272 webpack_require@weex createInstanceContext:79:34
11:36:04.293 eval code
11:36:04.313 eval@[native code]
11:36:04.333 weex createInstanceContext:1960:5
11:36:04.354
webpack_require
@weex createInstanceContext:79:34
11:36:04.374 eval code
11:36:04.395 eval@[native code]
11:36:04.415 weex createInstanceContext:163:5
11:36:04.436 webpack_require_@weex createInstanceContext:79:34
11:36:04.457 checkDeferredModules@weex createInstanceContext:46:42
11:36:04.478 webpackJsonpCallback@weex createInstanceContext:33:39
11:36:04.499 global code@weex createInstanceContext:154:57
11:36:04.544 getTemplateInfo== template md5 66c3cff058ff1b0136112ec7ba6f31c2 length 4426151 base64 md5 ZsPP8Fj/GwE2ES7Hum8xwg== response header {"templateSourceBase64MD5":["ZsPP8Fj/GwE2ES7Hum8xwg=="],"templateSourceMD5":["66c3cff058ff1b0136112ec7ba6f31c2"]}[
Connect_564117782___END]

2020-04-27 11:36 负责人:无 分享
已邀请:
x***@qq.com

x***@qq.com - 疑问?的小纳?

styl这个要在css里面引入

贽著

贽著

请问你这个问题最后怎么解决的,我遇到了类似的问题。

该问题目前已经被锁定, 无法添加新回复