vue新增页面,触发校验问题

用脚手架新建了一个vue3项目
新建vue页面就会出现 **3 errors and 0 warnings potentially fixable with the --fix option.**这个错误
就算写个最简单的

<template>
  <div>1111111</div>
</template>

一样会提示错误
但是,去复制最开始脚手架里边带的 Aboutt.vue Home.vue 复制出来一个副本,然后编辑就没有一点问题
也去查了 3 errors and 0 warnings potentially fixable with the --fix option. 这个错误并去处理了一下,但是没有用

img

你看看是不是你的文件命名没有驼峰式

这个是你新页面里面结构不全导致的

<template>
  ......
</template>
<script>
export default {
    name: 'xxxxxx'//报错应该主要来自于这里
}
</script>
<style lang="scss">
</style>