Fork me on GitHub

Vue脚手架报错 Component name “Student“ should always be multi-word vue/multi-word-component-names

 

解决办法:

进入到vue.config.js文件

添加代码:

lintOnSave:false /*关闭语法检查*/
 
完整版:
在文件中添加如下内容

    const { defineConfig } = require('@vue/cli-service')
    module.exports = defineConfig({
      transpileDependencies: true,
      lintOnSave:false /*关闭语法检查*/
    })

 

posted @ 2022-10-21 15:23  -悟空  阅读(163)  评论(0)    收藏  举报