Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select选择器, 控制大量警告 #66

Closed
lincenying opened this issue Sep 13, 2016 · 6 comments
Closed

select选择器, 控制大量警告 #66

lincenying opened this issue Sep 13, 2016 · 6 comments

Comments

@lincenying
Copy link

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>)的警告.

@QingWei-Li
Copy link
Contributor

QingWei-Li commented Sep 13, 2016

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

@lincenying
Copy link
Author

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

@QingWei-Li
Copy link
Contributor

QingWei-Li commented Sep 13, 2016

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

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

@dingyiming
Copy link

dingyiming commented Sep 13, 2016

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

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

image

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

@lincenying
Copy link
Author

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

@Leopoldthecoder
Copy link
Contributor

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

hazel54 pushed a commit to hazel54/element that referenced this issue Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants