This only occurs with components that are instantiated by the router.
This only occurs in Vue2, not in Vue3.
Specifying a name in the component fixes this. My team is considering adding the vue/require-name-property ESLint rule to avoid this, but given that our main app has over 300 components (and we have several other Vue repos), it's a significant annoyance and prone to renaming mistakes.
Vue devtools version
6.4.5
Link to minimal reproduction
https://github.com/haysmike/vue-name-test
Steps to reproduce & screenshots
cd
into it.yarn
.yarn serve
.HomeView
.HomeView.vue
and comment out theconsole.log()
statement on line 18. Save the file.What is expected?
It should look like this:
What is actually happening?
HomeView
has becomeAnonymous Component
:System Info
Any additional comments?
name
in the component fixes this. My team is considering adding thevue/require-name-property
ESLint rule to avoid this, but given that our main app has over 300 components (and we have several other Vue repos), it's a significant annoyance and prone to renaming mistakes.Thanks for taking a look!