版本 V5.0.2, 依然无法通过cli 启动。
系统信息
linux: cachyos
浏览器: Chrome, 已配置chrome 为默认浏览器,并配置了Chrome 软链方便cli 识别调用。
已安装插件
compile-dart-sass
运行过程
打开项目
hbx project open --path ~/test
正在导入项目...
项目导入成功
运行日志
hbx launch web --project ~/test --browser Chrome
14:00:28.502 HBuilderX Version: 5.02.2026030616-alpha
14:00:28.503 当前操作系统仅支持compile模式,已自动切换到compile模式
14:00:28.506 项目 test 开始编译
14:00:29.055 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
14:00:29.113 正在编译中...
14:00:29.513 INFO Starting development server...
14:00:42.928 WARNING: Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.929 (Emitted value instead of an instance of Error) <MView v-for="img in info.imgs">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.929 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.930 (Emitted value instead of an instance of Error) <MView v-for="img in info.msg">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.931 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.931 (Emitted value instead of an instance of Error) <MView v-for="img in obj">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.931 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.931 (Emitted value instead of an instance of Error) <MView v-for="item in data">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.932 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.932 (Emitted value instead of an instance of Error) <MView v-for="item in languages">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.932 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.933 (Emitted value instead of an instance of Error) <MView v-for="item in list">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.933 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.933 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.analysis1">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.933 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.933 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.analysis2">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.934 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.934 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.ia">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.934 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.934 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.ps">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.934 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.935 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.ss">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.935 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.935 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.test">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.935 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.936 (Emitted value instead of an instance of Error) <MView v-for="item in msg['option']">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.936 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.936 (Emitted value instead of an instance of Error) <MView v-for="item in partList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.936 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.937 (Emitted value instead of an instance of Error) <MView v-for="item in top">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.937 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.937 (Emitted value instead of an instance of Error) <MView v-for="kid in item.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.937 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.937 (Emitted value instead of an instance of Error) <ReportInfo v-for="v in reportInfo.report">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.938 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.938 (Emitted value instead of an instance of Error) <v-uni-swiper-item v-for="pet in petInfo.petList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.938 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.938 (Emitted value instead of an instance of Error) <v-uni-view v-for="c in r.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.939 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.939 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in chatList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.939 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.939 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in list">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.940 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.940 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in prizeList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.940 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.941 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in reportList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.941 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.941 (Emitted value instead of an instance of Error) <v-uni-view v-for="menuData in petTypeData">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.941 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.942 (Emitted value instead of an instance of Error) <v-uni-view v-for="n in scale">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.942 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.942 (Emitted value instead of an instance of Error) <v-uni-view v-for="o in c.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.942 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.943 (Emitted value instead of an instance of Error) <v-uni-view v-for="o in r.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.943 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.943 (Emitted value instead of an instance of Error) <v-uni-view v-for="part in partInfo">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.943 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.944 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[0]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.944 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.944 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[1]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.944 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.945 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[2]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.945 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.945 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[3]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.945 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
14:00:42.946 (Emitted value instead of an instance of Error) <v-uni-view v-for="sv in text">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
14:00:42.946 App running at:
14:00:42.946 - Local: http://localhost:8080/
14:00:42.947 - Network: http://192.168.101.55:8080/
14:00:42.948 项目 test 编译成功。前端运行日志,请另行在浏览器的控制台查看。
14:00:42.949 点击控制台右上角debug图标(虫子),可开启断点调试(添加断点:双击编辑器行号添加断点)
14:00:42.949 Web版常见问题参考: https://ask.dcloud.net.cn/article/35232
14:00:42.979 已停止运行...
期望
当前启动后会直接停止运行,期望可以保持运行,或者增加日志,确认具体问题。
3 个回复
Ask小助手
作为 DCloud 官方人员,我对这条 bug 反馈做如下评审:
信息完整度
– 未提供任何日志(终端输出、HBuilderX 控制台、~/.HBuilderX/logs 下的 log 文件)。
– 未说明项目是 Vue2 还是 Vue3,是否包含 uniCloud、uni-upgrade-center-app 等插件。
– “cli open 打开项目” 与 “运行 web h5” 之间缺少具体命令,例如是
cli run --platform h5还是手动在 HBuilderX 里点“运行到浏览器”。复现可行性
仅凭“cli open 打开项目 → 运行 web h5”无法 100 % 复现,因为:
Bug 是否成立
根据优先知识库:
建议补充信息
请用户补充:
临时替代方案
x***@163.com (作者)
版本 V5.0.2, 依然无法通过cli 启动。
系统信息
linux: cachyos
浏览器: Chrome, 已配置chrome 为默认浏览器,并配置了Chrome 软链方便cli 识别调用。
已安装插件
compile-dart-sass运行过程
打开项目
运行日志
期望
当前启动后会直接停止运行,期望可以保持运行,或者增加日志,确认具体问题。
x***@163.com (作者)
5.0.3 问题依旧
要回复问题请先登录或注册
公告
更多>相关问题