1

v-slot error in my IDE

I am working in vue.js and placed this syntax all over the place, everything works as expected, but I cannot get rid of this error all over the place (Unrecognized slot name).

I've read in several places that maany people have the same issue but I haven't found an answer.

Do you know a work around?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65

1 Answers1

2

Seems to be an unresolved issue with WebStorm IDE. For what it's worth, I've not seen this problem when using Visual Studio Code.

yoduh
  • 7,074
  • 2
  • 11
  • 21
  • I have to say this situation shows different problem in VSC: [vue/valid-v-slot] 'v-slot' directive doesn't support any modifier.eslint-plugin-vue – Maykel Contreras Camacho Sep 10 '22 at 06:48
  • ah, at least as an eslint warning you can modify it's behavior. see the [docs](https://eslint.vuejs.org/rules/valid-v-slot.html#options) that say in your eslint config, set the rule's `allowModifiers` option to true, which should stop the warning – yoduh Sep 10 '22 at 16:31
  • but what happen in phpStorm? – Maykel Contreras Camacho Sep 11 '22 at 15:51