ESLint: error Component name "Home" should always be multi-word vue/multi-word-component-names
ESLint's Vue rules require component names with at least two words to avoid clashing with HTML elements.
error Component name "Home" should always be multi-word vue/multi-word-component-namesComponent name "Index" should always be multi-worderror Component name should always be multi-word vue/multi-word-component-names Meaning
Rename (HomeView, TheHeader), or disable the rule for specific files (route views like index.vue) in .eslintrc: "vue/multi-word-component-names": ["error", { ignores: ["index"] }]. Vue CLI/Nuxt templates enable it by default.
Common causes
- Single-word component filename (
Home.vue,Button.vue) - Pages/index files in Nuxt
- Linting in CI failing builds
- Rule from
plugin:vue/vue3-essential - Third-party components names
⚡ Quick fix
- Rename to multi-word names (
AppButton) - Add
ignoresfor page files - Disable the rule if your convention differs
Detailed fix by platform
JSON
"rules": { "vue/multi-word-component-names": ["error", { "ignores": ["index", "default", "error"] }] }
How to diagnose
- Name — Multi-word?
- Files — Pages/index?
- Rule — Needed?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- [Vue warn]: The computed property "x" is already defined in data/props Vue: [Vue warn]: The computed property "name" is already defined in data.
- Duplicate attribute (Vue template) Vue: [plugin:vite:vue] Duplicate attribute. / [vue/no-duplicate-attributes] Duplicate attribute 'class'
- ESLint Parsing error in .vue files ESLint: Parsing error: Unexpected token < / Parsing error: '>' expected (vue-eslint-parser not configured)
Most viewed in Vue
- Property was accessed during render but is not defined Vue: [Vue warn]: Property "x" was accessed during render but is not defined on instance
- Avoid mutating a prop directly Vue: [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders
- Nuxt: window/document/localStorage is not defined (SSR) Nuxt: ReferenceError: window is not defined / 500 Internal Server Error during SSR
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026