error Component name "Student" should always be multi-word
时间: 2023-12-05 14:05:10 浏览: 88
根据引用和引用的提示信息,出现该错误的原因是组件名"Student"应该是由多个单词通过横线连接而成的。而根据引用的建议,可以在项目的.eslintrc.js文件中的rules部分添加以下内容以关闭名称校验规则 'vue/multi-word-component-names': "off"。这样做可以暂时禁用对组件名的多词校验,以解决该错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [在 vue eslint 报错 error “Component name “*****“ should always be multi-word”,该怎么办?](https://blog.csdn.net/qq_57587705/article/details/124674660)[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* [Vue脚手架报错 Component name “Student“ should always be multi-word vue/multi-word-component-names](https://blog.csdn.net/qq_51612558/article/details/124329234)[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 ]
阅读全文