Project issues
An error was encountered in the Vue project today. The console reported error Component name “xxx“ should always be multi-word vue/multi-word-comp
, which is mainly the error reported by eslint standardization
Solution:
Turn off naming rule verification
find it in the root directory eslintrc.js file, add the following code:
"vue/multi-word-component-names":"off",
.eslintrc.js file content:
Read More:
- [Solved] 1:1 error Component name “Header“ should always be multi-word vue/multi-word
- [Solved] vue error: error Component name “School“ should always be multi-word vue/multi-word-component-names
- 9:13 error Component name “home“ should always be multi-word vue/multi-word-component-names
- [Solved] Vue eslint Error: Component name “*****“ should always be multi-word
- [Solved] ESlint Create New File Error: Component name “Home” should always be multi-word.
- [Solved] Component name “login“ should always be multi-word.
- [Solved] Vue3 Error: Failed to resolve component:xxx
- Parsing error: await is a reserved word [How to Solve]
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Vue-vscode Error: Parsing error: Unexpected reserved word ‘await‘.
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- Vue warn]: vue3 element Component emit Pass Event Error
- Vue Error: component has been registered but not used [Two Methods to Solve]
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- [Solved] Vue Error: error ‘xxx‘ is defined but never used no-unused-vars
- Vue element component V-for error [How to Modify)
- [Solved] Vue3.2 component computed Error: Write operation failed: computed value is readonly
- [Solved] vue watch Error: Error in callback for watcher “xxx“: “TypeError: Cannot read properties of undefined …
- [Solved] el-date-picker Error: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders.
- [Solved] VUE eslint Error: Expected linebreaks to be ‘LF‘ but found ‘CRLF