Vue: [Vue warn]: The computed property "name" is already defined in data.
A name is used twice among props/data/computed/methods in the Options API.
[Vue warn]: The computed property "name" is already defined in data.The computed property "x" is already defined as a prop.[Vue warn]: Method "x" has already been defined as a prop.[Vue warn]: The data property "x" is already declared as a prop. Use prop default value instead.computed property is already defined in data Meaning
Rename one of them. The same applies to "Method "x" has already been defined as a prop", data vs props, or composition ref names shadowing template variables. Options API keys share one namespace on the component instance.
Common causes
- Same name in data and computed
- Method name equals a prop
- Prop name equals a data key
- Copy/paste leftovers
- Mixins introducing the same name
⚡ Quick fix
- Rename the duplicate (
fullNamevsname) - Remove the redundant data field
- Check mixins for collisions
Detailed fix by platform
Vue
props: ["name"], computed: { displayName() { return this.name.toUpperCase() } }
How to diagnose
- Names — Duplicate?
- Mixins — Collision?
- Namespace — Unique?
🔧 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]: Invalid prop: type check failed Vue: [Vue warn]: Invalid prop: type check failed for prop "count". Expected Number with value 5, got String with value "5"
- 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
- ESLint Parsing error in .vue files ESLint: Parsing error: Unexpected token < / Parsing error: '>' expected (vue-eslint-parser not configured)
Most viewed in Vue
- Failed to resolve component Vue: [Vue warn]: Failed to resolve component: x
- Nuxt: window/document/localStorage is not defined (SSR) Nuxt: ReferenceError: window is not defined / 500 Internal Server Error during SSR
- getActivePinia() was called but there was no active Pinia Pinia: Error: [🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
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