这个问题就是ES检查报错, 排查逻辑如下
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
/Users/mac/WebstormProjects/vue3/src/components/HelloWorld.vue
38:36 error 'oldvalue' is defined but never used no-unused-vars
✖ 1 problem (1 error, 0 warnings)
webpack compiled with 1 error
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
大致意思就 选择一种方式来忽略处理
查看配置 vue.config
关闭es 检查 lintOnSave:false
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave:false,
})