1:1 error Component name "Search" should always be multi-word vue/multi-word-component-names
时间: 2023-12-05 19:46:41 浏览: 194
根据你提供的引用内容,问题是关于Vue组件命名规则的错误。根据\[1\]中的代码,可以看出错误信息是"Component name 'Search' should always be multi-word",意思是组件名"Search"应该是多个单词。根据\[1\]中的配置,可以通过在.eslintrc.js文件中关闭命名规则来解决这个问题。具体的解决方法可以参考\[2\]和\[3\]中的代码示例,其中包括了两种解决方法。第一种是按照规范填写文件名,第二种是在vue.config.js文件中添加代码来关闭语法检查。你可以根据具体情况选择其中一种方法来解决这个问题。
#### 引用[.reference_title]
- *1* [报错:error Component name “index“ should always be multi-word vue/multi-word-component-names](https://blog.csdn.net/weixin_57167969/article/details/127750763)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [报错:error Component name “xxx“ should always be multi-word vue/multi-word-component-names](https://blog.csdn.net/m0_70619994/article/details/127931589)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [ error Component name “xxx“ should always be multi-word vue/multi-word-component-names](https://blog.csdn.net/weixin_46713508/article/details/127693222)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文