Error: Type 'IconDefinition' is not assignable to type 'Fa'. (ts)
mvolkmann opened this issue · comments
When I run svelte-check
I get lots of errors with the message in the subject.
Is this a known issue?
I have these dependencies installed:
"@fortawesome/fontawesome-common-types": "^0.2.35",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
I think it is confused about the type of values imported from @fortawesome/free-solid-svg-icons
.
Are those supposed to have a type of IconDefinition
?
I didn't have such problems.
<script lang="ts">
import Fa from 'svelte-fa'
import { faFlag } from '@fortawesome/free-solid-svg-icons'
</script>
<Fa icon={faFlag}></Fa>
> svelte-app@1.0.0 check D:\workspace\test\a\svelte-app
> svelte-check --tsconfig ./tsconfig.json
====================================
Loading svelte-check in workspace: d:\workspace\test\a\svelte-app
Getting Svelte diagnostics...
====================================
svelte-check found 0 errors, 0 warnings, and 0 hints
Can you use codesandbox or repo to provide a reproducible use case?
This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.