How to Deal With the Error: ‘v-slot’ directive doesn’t support any modifier

What to do if you get an error with’v-slot’ directive doesn’t support any modifier.

[vue/valid-v-slot]
‘v-slot’ directive doesn’t support any modifier.

xxx.view
 With Eslint error

<template v-slot:item.name="{ item }">
xxx.view
Without error:

<template v-slot:[`item.name`]="{ item }">

Done

Read More:

1 thought on “How to Deal With the Error: ‘v-slot’ directive doesn’t support any modifier

Leave a Reply

Your email address will not be published. Required fields are marked *