ESlint
Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag
(分析错误:相邻的JSX元素必须包装在封闭标记中)
- 解决办法:在根目录的**.eslintrc.js**文件下添加如下代码。
module.exports = {
extends: [
'plugin:vue/recommended'
]
}
Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag
(分析错误:相邻的JSX元素必须包装在封闭标记中)
module.exports = {
extends: [
'plugin:vue/recommended'
]
}