7***@qq.com
7***@qq.com
  • 发布:2023-11-26 12:45
  • 更新:2023-11-26 12:45
  • 阅读:96

Hbuildx 新创建的hello-uts vue2版本,真机运行就报错

分类:uts

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.613 6 | <button @click="callbackArrayTest">异步返回数组</button>
12:31:00.617 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.618 7 | <button @click="callbackParamTest">异步返回复杂对象</button>
12:31:00.622 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.622 at E:\study\hello-uts\pages\SyntaxCase\paramTest.vue:0
12:31:00.627 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
12:31:00.628 (Emitted value instead of an instance of Error)
12:31:00.632 Errors compiling template:
12:31:00.632 Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
12:31:00.638 1 |
12:31:00.639 正在建立手机连接...
12:31:00.639 2 | <button @click="logStr">打印字符串</button>
12:31:00.646 |
12:31:00.647 3 | <button @click="logFloat">打印浮点数</button>
12:31:00.651 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.651 4 | <button @click="logInt">打印整数</button>
12:31:00.656 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.656 5 | <button @click="logObject">打印对象</button>
12:31:00.661 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.661 注:检测到当前使用的ADB不是HBuilderX内置或自定义ADB:
12:31:00.661 PID为:进程名称为:adb.exe
12:31:00.661 路径为D:/Program Files/Android/sdk/platform-tools/adb.exe
12:31:00.661 可能存在adb冲突造成真机运行不刷新或不重启等情况,如果正常则忽略
12:31:00.661 如果遇到异常情况,请检查adb冲突
12:31:00.662 6 | <button @click="logFunction">打印函数</button>
12:31:00.667 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.668 7 | <button @click="logFile">打印文件</button>
12:31:00.674 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.674 8 | <button @click="logDate">打印日期</button>
12:31:00.678 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.678 9 | <button @click="logDateCombine">组合打印日期</button>
12:31:00.683 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.683 at E:\study\hello-uts\pages\SyntaxCase\consoleTest.vue:0
12:31:00.687 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
12:31:00.687 (Emitted value instead of an instance of Error)
12:31:00.691 Errors compiling template:
12:31:00.691 text "{{ret}}" outside root element will be ignored.
12:31:00.696 1 |
12:31:00.696 |
12:31:00.699 2 | {{ret}}
12:31:00.700 | ^^^^^^^
12:31:00.703 3 | <button @click="instanceCreate">多实例创建测试</button>
12:31:00.704 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:31:00.707 4 |
12:31:00.707 |
12:31:00.711 at E:\study\hello-uts\pages\SyntaxCase\instanceTest.vue:0
12:31:00.711 [tsl] ERROR at App.vue:27
12:31:00.717 TS2339:Property 'exit' does not exist on type 'Uni'.

2023-11-26 12:45 负责人:无 分享
已邀请:

要回复问题请先登录注册