Loading

Component name “xxx“ should always be multi-word vue/multi-word-component-names

vue 报错Component name “xxx“ should always be multi-word vue/multi-word-component-names

新的版本中,要求了componets的命名格式,如果想要忽视此规则,需要修改vue.config.js

const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false    //添加此项
})
posted @ 2022-10-06 13:21  北方Cc  阅读(277)  评论(0)    收藏  举报