目录
报错信息:
1:1 error The template requires child element vue/valid-template-root
1:1 error Component name "one" should always be multi-word vue/multi-word-component-names
6:8 error 'axios' is defined but never used no-unused-vars
✖ 19 problems (19 errors, 0 warnings)
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
ERROR in [eslint]
报错截图:
报错分析:
这些错误和警告来自于你的 JavaScript 和 Vue.js 代码,它们被 ESLint 检测到。ESLint 是一个开源的 JavaScript 代码检查工具,可以在代码编写过程中发现潜在的错误和不符合代码规范的写法
报错解决:
在vue.config.js文件中加上一个关闭语法检查的配置项即可
module.exports = {
lintOnSave: false,
}