error Component name "Appheader" should always be multi-word vue/multi-word-component-names
时间: 2023-12-05 21:06:00 浏览: 100
vue-component-creater-ui-UE4/UE5开发资源
根据你提供的引用,"error Component name "Appheader" should always be multi-word vue/multi-word-component-names"是一条错误信息,意思是组件名称"Appheader"应该始终是多个单词的形式。官方文档建议组件名写成驼峰式或者使用连字符进行衔接。这个错误信息可能是由于组件名称不规范导致的。你可以在编译的时候将命名不规范的代码判定为错误。解决这个问题的一种方法是将组件名修改为多个单词或使用连字符进行衔接。例如,将"Appheader"改为"AppHeader"或"app-header"。如果你在项目的根目录下有一个vue.config.js文件,你可以在其中添加lintOnSave: false的配置来关闭这个错误检查。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [error Component name “Login“ should always be multi-word vue/multi-word-component-names【已解决】](https://blog.csdn.net/qq_40374604/article/details/128785667)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [error Component name “index“ should always be multi-word vue/multi-word-component-names](https://blog.csdn.net/weixin_43945122/article/details/129670018)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文