When using vscode to develop Vue projects and eslint to check rules, V-for reports an error: expected ‘v-bind: key’ directives to use the viruses which are defined by the ‘V-for’ directive.
solution: define the index in the variable defined in V-for
example:
<div v-for="titile in titles" :key="title.index">{{ name }}</div>
Read More:
- Problems with vue project installation No ESLint configuration found
- Solution of “do not use ‘new’ for side effects” for eslint verification of Vue project
- Failed to load plugin react: cannot find module ‘eslint plugin react’ appears when running Vue project‘
- Configure eslint in vscode to automatically repair and save the code
- Vscode error parsing error: invalid ecmaVersion.eslint ‘import’
- Vue: validation syntax error of eslint
- Solution to prompt “cannot find module ‘eslint config defaults / configurations / eslint’” when submitting with Git
- Declarative development tab in Vue
- During the development of vue, v-for reported an error [vue/require-v-for-key] Elements in iteration expect to have’v-bind:key’ directives.
- Create xxx.vue file with vscode, add comments and report error
- Use less.js to verify and report an error in the Vue file of vscode
- Brief introduction of cmake generating all in vs Project_ BUILD、INSTALL、ZERO_ Check function!!
- The template tags of all vscode Vue files report errors in red~
- The problem of recipe terminated with error. Retry building the project. Occurs when vscode configures latex
- Flutter development: prompt error parsing localfile when running the project: ‘/ users / xxx / Android / APP / SRC / main / androidmanifest. XML’… Solution
- [Solved] VUE Error: “You may use special comments to disable some warnings.Use // eslint-disable-next-line to …
- Build Vue project on alicloud server
- Front end Vue project operation error module build failed
- How to solve the cross domain problem of Axios in Vue project
- Solution to inaccessibility of Vue cli scaffold project after startup