一、Vue 3编译报错
error Component name "Login" should always be multi-word vue/multi-word-comperror Component name "Login" should always be multi-word vue/multi-word-comp
?
分析:语法检查的时候把不规范的代码(即命名不规范)当成了错误
解决方案: 更改组件名(这个比较麻烦),也就是重新起个组件名,使其符合命名规范,如: StudentName 或者 student-name修改配置项,关闭语法检查 1.在项目的根目录找到(没有就创建)vue.config.js文件 const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, lintOnSave:false })?更多:
VSCode中Vue3插件使用整理_Vue3开发插件
?Element-ui和Element-Plus的区别_Element2和Element3的区别 Vue3+Element Plus开发搭建_Vue3+Element3开发搭建
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。 |
标签: #error #component #name #xxx #should #always #be #multiword