7:8 error Component name "Login" should always be multi-word vue/multi-word-component-names
时间: 2023-12-05 16:46:22 浏览: 153
根据引用\[1\]、\[2\]和\[3\]的内容,你遇到的问题是在Vue项目中使用了一个名为"Login"的组件,但是ESLint报错提示组件名应该是多个单词的。这是因为ESLint规则要求组件名采用驼峰命名法,即多个单词之间使用大写字母或下划线分隔。所以你需要将组件名改为类似"LoginComponent"这样的形式,以符合规范。这样修改后,ESLint就不会再报错了。
#### 引用[.reference_title]
- *1* [解决 error Component name “index“ should always be multi-word vue/multi-word-component-names](https://blog.csdn.net/lhz_333/article/details/125313088)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Vue报错:Component name “School“ should always be multi-word vue/multi-word-component](https://blog.csdn.net/DCJwwh/article/details/128719369)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【VUE】报错:Component name “Login“ should always be multi-word.](https://blog.csdn.net/Supreme7/article/details/125990190)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文