Component name "Books" should always be multi-word
时间: 2023-12-05 21:47:34 浏览: 94
这个报错的意思是组件名称"Books"应始终为多个单词。这是因为Vue官方推荐组件名称使用多个单词来提高可读性和代码的一致性。所以,你需要将组件名改为多个单词的形式,例如"BooksList"或"BooksComponent"。这样,你就可以遵循Vue的最佳实践了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [vue组件终端报错: error Component name “xxx“ should always be multi-word vue/multi-word-component-...](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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文