前言 今天在做项目的时候Visual Studio Code报了一个错

[eslint-plugin-vue] [vue/no-unused-vars] 'scope' is defined but never used.

这个错的意思是声明了scope却没有使用它,这是vue的eslink插件检测的。

我想这个scope的属性不是自己的吗,咋是我声明了它呢,这个时候头脑突然跳出来了scope这个属性被最新vue已经弃用了,升级成slot-scope了
最后我把scope改成slot-scope就不报错了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-02-15
  • 2021-04-22
相关资源
相似解决方案