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:

Leave a Reply

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