You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to use FontAwesomeIcon react component with paid sharp regular icons, an error is being thrown in the console saying Could not find icon
Reproducible test case
import { faCircleExclamation } from '@fortawesome/sharp-regular-svg-icons'
Add it to the libary
import { library } from '@fortawesome/fontawesome-svg-core'
library.add(faCircleExclamation)
Attempt to use the icon:
<FontAwesomeIcon icon="circle-exclamation" />
Error in the browsers console:
It seems that the FontAwesomeIcon component is trying to run a lookup using wrong prefix fas. The prefix of this icon is fasr
Furthermore, it seems that the IconPrefix type does not include fasr:
@sampolahtinen Is this specific to version 6? We are successfully using pro icons from Font Awesome V5 via react-fontawesome...but now you have me nervous about our planned migration to v6.
Describe the bug
When trying to use
FontAwesomeIcon
react component with paid sharp regular icons, an error is being thrown in the console sayingCould not find icon
Reproducible test case
import { faCircleExclamation } from '@fortawesome/sharp-regular-svg-icons'
It seems that the
FontAwesomeIcon
component is trying to run a lookup using wrong prefixfas
. The prefix of this icon isfasr
Furthermore, it seems that the
IconPrefix
type does not includefasr
:, which means that following syntax throws static TS error:
Expected behavior
Should be able to render the icon.
Package versions
Thanks in advance! Let me know if you need more information!
The text was updated successfully, but these errors were encountered: