Element: select选择器, 控制大量警告

Created on 13 Sep 2016  ·  6Comments  ·  Source: ElemeFE/element

git clone仓库后, npm run dev, 在select组件里, 点任何select, 都报大量类似[Vue warn]: Duplicate presense of slot "default" found in the same render tree - this will likely cause render errors. (found in component <ElSelect>)的警告.

question

Most helpful comment

@lincenying @dingyiming 重新拉一下代码吧,已经升级到 Vue rc.6 了。

All 6 comments

目前 Vue rc4 和 rc5 都有一个 bug 导致这些问题,所以 package.json 里锁定了 vue 的版本是 rc3
但是你这个应该是高版本的 vue 导致的。所以手动安装 Vue 的版本为 [email protected]

谢谢解答...
因为安装完后, dev时报vue和vue-template-compiler版本不符, 所以就把vue升到了rc5

这三个全都锁定版本了啊,为啥还会版本不符。。。

   "vue": "2.0.0-rc.3",
   "vue-loader": "9.3.2",
   "vue-template-compiler": "2.0.0-rc.3"

我也有遇到,原来是vue的问题

查了下vue的仓库,已经修复了,下个版本就好了

image

  • 需要注意同步更新 vue-loader才行

vue-loader 9.3.2里的依赖中, vue-template-compiler 是 rc.5版本

@lincenying @dingyiming 重新拉一下代码吧,已经升级到 Vue rc.6 了。

Was this page helpful?
0 / 5 - 0 ratings