扒皮狼

关注

error ‘defineProps‘ is not defined no-undef

扒皮狼

关注

阅读 138

2022-02-19

error ‘defineProps’ is not defined no-undef

使用vue3的时候 报错
例如defineProps和defineEmits生成no-undef警告

示例.eslintrc.js:

module.exports = {
  env: {
    'vue/setup-compiler-macros': true
  }
}

安装上面的配置完成之后就可以了
配置成功之后

  • 大家也可以去官网查看

vue3 no-undef
https://eslint.vuejs.org/user-guide/#faq

相关推荐

SDKB英文

vue3 编译报 ESLint: ‘defineProps‘ is not defined no-undef 错误问题

SDKB英文 177 0 0

西街小学的王

React 报错 ‘root‘ is not defined no-undef

西街小学的王 70 0 0

河南妞

Vue中error ‘XXXXX‘ is not defined no-undef解决办法

河南妞 294 0 0

q松_松q

‘defineProps‘ is not defined

q松_松q 101 0 0

IT程序员

报红:找不到名称ref ts(2304)、‘ref‘ is not defined. eslint(no-undef)

IT程序员 31 0 0

念川LNSC

解决:使用 Vue 3 Script Setup 时 ESLint 报错 ‘defineProps‘ is not defined

念川LNSC 393 0 0

吃面多放酱

Error in render: "ReferenceError: h is not defined"

吃面多放酱 60 0 0

天涯学馆

[前端]Resolving error dataLayer is not defined

天涯学馆 70 0 0

心智的年轮

【C语言】undef

心智的年轮 22 0 0

洒在心头的阳光

Error creating bean with name ‘projectPhaseDao‘ defined in file

洒在心头的阳光 163 0 0

精彩评论(0)

0 0 举报