1:1 error Component name “Subtraction“ should always be multi-word vue/multi-word-component-name
Posted 闲言博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1:1 error Component name “Subtraction“ should always be multi-word vue/multi-word-component-name相关的知识,希望对你有一定的参考价值。
错误产生环境
Vue 脚手架构建项目时,导入自定义组件产生
错误描述
1:1 error Component name "Subtraction" should always be multi-word vue/multi-word-component-names
错误原因
语法检查的时候把不规范的代码(即命名不规范)当成了错误
解决办法
解决办法1:修改组件名称
解决办法2:在vue.config.js 中添加如下配置 lintOnSave: false
const defineConfig = require('@vue/cli-service')
module.exports = defineConfig(
transpileDependencies: true,
lintOnSave: false
)
以上是关于1:1 error Component name “Subtraction“ should always be multi-word vue/multi-word-component-name的主要内容,如果未能解决你的问题,请参考以下文章
A component required a bean named ‘XXXService‘ ...
[FAQ] Error: Component series.bar not exists. Load it first. (echarts)
error TS2339: Property '$route' does not exist on type