-
-
Notifications
You must be signed in to change notification settings - Fork 482
Closed
Description
Reproduction: https://stackblitz.com/edit/vitejs-vite-neriqf?file=src/App.vue
(Run npm run build
to see the error)
Source code in App.vue
:
<button>
<span class="fa fa-tweet" aria-hidden="true"></span>
<span class="label"> Tweet </span>
</button>
Error on type-checking:
src/App.vue:20:33 - error TS2322: Type '{ class: string; ariaHidden: string; "aria-hidden": "true"; }' is not assignable to type 'ElementAttrs<HTMLAttributes>'.
Property 'ariaHidden' does not exist on type 'ElementAttrs<HTMLAttributes>'. Did you mean ''aria-hidden''?
20 <span class="fa fa-tweet" aria-hidden="true"></span>
~~~~~~~~~~~
Found 1 error in src/App.vue:20
zardoy, achaphiv and asmaloney
Metadata
Metadata
Assignees
Labels
No labels