212 Star 2.9K Fork 772

奔跑的面条 / vue-big-screen-plugin

 / 详情

编译错误

已完成
创建于  
2023-03-06 11:45

编译时报错 node:14.19
key should be placed on the tag.
at D:\vue-big-screen-plugin\node_modules@jiaminghi\data-view\lib\components\decoration6\src\main.vue:8:11
6 | >
7 | <rect
8 | :key="i"
| ^^^^^^^^
9 | :fill="mergedColor[Math.random() > 0.5 ? 0 : 1]"
10 | :x="point[0] - halfRectWidth"
@ ./node_modules/@jiaminghi/data-view/lib/components/decoration6/src/main.vue?vue&type=template&id=00bc6d25 1:0-262 1:0-262
@ ./node_modules/@jiaminghi/data-view/lib/components/decoration6/src/main.vue 1:0-65 6:68-74 16:64-18:3 17:29-35 16:2-18:4
@ ./node_modules/@jiaminghi/data-view/lib/components/decoration6/index.js 2:0-41 4:16-32 4:34-45
@ ./node_modules/@jiaminghi/data-view/lib/index.js 29:0-72 29:0-72 69:0-57 118:10-21
@ ./src/main.ts 5:0-41 14:8-13

评论 (7)

moMo 创建了任务

一样, 问一下,解决了么 :smile:

需要提前安装好 nodejs 与 yarn,下载项目后在项目主目录下运行 yarn 拉取依赖包。安装完依赖包之后然后使用 vue-cli 或者直接使用命令npm run serve,就可以启动项目,启动项目后最好是手动全屏查看(按 F11)。如果编译项目的时候提示没有 DataV 框架的依赖,输入 npm install @jiaminghi/data-view 或者 yarn add @jiaminghi/data-view 进行手动安装。

如果安装完依赖 @jiaminghi 报错 key should be placed on the tag 类似的bug,我已经做了修复,大家把此工程目录下的 other_modules/@jiaminghi.rar 解压并替换掉 node_modules 里面的同名文件(或者手动修改,只需要把 v-for 移动到下方标签里,并删除 template 即可),我已经给作者提了 Issues 希望大家拉取的时候没有这个错误

如果大家不想每次都修改依赖,可以使用社区封装的 vue3 版本的 DataV:

https://gitee.com/kjgl77/datav-vue3
https://gitee.com/wangbin3162/bin-datav?_from=gitee_search

作者在项目中有个other_modules 里面的压缩包解压后放到 node_modules 目录中。就能解决了,麻烦的地方就是每次编译都要重新放一次

社区封装了Vue3版本的dataV,然后我没记错的话,现在官方的Vue3版本好像也出了,我一直没时间去看

自己看着改改配置吧

奔跑的面条 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(4)
4964818 mtrun 1653229420
JavaScript
1
https://gitee.com/MTrun/vue-big-screen-plugin.git
git@gitee.com:MTrun/vue-big-screen-plugin.git
MTrun
vue-big-screen-plugin
vue-big-screen-plugin

搜索帮助