'how to fix Vue typescript property does not exist error

in vue3 typescript I am having some property does not exist in the HtmlElement error. please help me to solve this issue.

(property) dataButtons: string

(property) data-buttons: string

Type '{ class: string; dataButtons: string; "data-buttons": string; }' is not assignable to type 'HTMLAttributes<HTMLDivElement>'.

Property 'dataButtons' does not exist on type 'HTMLAttributes<HTMLDivElement>'.ts(2322)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source