Open sampolahtinen opened 1 year ago
This bug also applies to the library @fortawesome/pro-regular-svg-icons
.
So basically pro icons can not be used with FontAwesomeIcon
Any movement in regards to fixing the issue?
@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!