vetur插件提示 'v-for' directives require 'v-bind:key' directives.错误的解决办法
2017-07-28 14:49
609 查看
使用VS Code 出现如下问题,如图:
Vue 2.2.0+的版本里,当在组件中使用v-for时,key是必须的。
更改vetur配置 vscode->首选项->设置->搜索(vetur)
"vetur.validation.template":
true,
改成:false
Vue 2.2.0+的版本里,当在组件中使用v-for时,key是必须的。
更改vetur配置 vscode->首选项->设置->搜索(vetur)
"vetur.validation.template":
true,
改成:false
相关文章推荐
- vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- vscode的vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- vetur插件提示 'v-for' directives require 'v-bind:key' directives.错误的解决办法
- vue2.0 vetur插件提示 'v-for' directives require 'v-bind:key' directives 的解决办法
- 编译时提示 conflicting types for 错误的解决办法
- eclipse安装插件提示Duplicate Location错误的解决办法
- word与有道插件冲突导致word打开提示有关宏错误解决办法!
- eclipse导入项目,提示path for project must have only one segment错误信息的解决办法
- Discuz!教程之应用中心安装插件提示“数据下载错误(105)”的解决办法
- eclipse安装插件提示Duplicate Location错误的解决办法
- bind中rndc配置好之后,开启named的时候提示unkown option default-key/server/port 解决办法
- eclipse 无法启动AVD,出现Starting emulator for AVD '' PANIC: Could not open: 错误提示的解决办法
- git 出现The current branch is not configured for pull No value for key branch.master.merge found in configuration错误的解决办法
- VSCode的vetur插件提示 Vue中的v-for有[vue-language-server]错误
- weiphp 3.0创建插件提示错误解决办法 提示您没有创建目录写入权限,
- pidgin 使用飞信插件 提示密码错误的解决办法!
- VS Code使用.vue的v-for方法提示错误的解决办法
- Silverlight插件安装失败,提示1603错误号的解决办法