I am unable to build my React project because of Font Awesome library for react.
I have used the icons with <FontAwesomeIcon icon={faPowerOff} />
syntax until now, but after trying to implement automatic build and deploy on Github, I get the following error:
Type 'IconDefinition' is not assignable to type 'IconProp'.
Type 'IconDefinition' is not assignable to type 'IconLookup'.
Types of property 'iconName' are incompatible.
The icon does render with this syntax and the error, strangely.
With the <FontAwesomeIcon icon={"power-off"} />
syntax, I don't get the error anymore, but the icon itself does not render at all.
The versions I have used since the beginning of the project:
├── @fortawesome/fontawesome-svg-core@1.3.0
├── @fortawesome/free-solid-svg-icons@5.15.4
├── @fortawesome/react-fontawesome@0.1.17
Does anybody know how to fix this?