Dependencies
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"next": "12.1.6",
"react": "18.1.0",
"react-dom": "18.1.0",
"styled-components": "^5.3.5"
Problem
I'm trying to create a custom button that takes props selecting a font awesome fa-solid icon. The docs for React say I should be able to just do the following
<FontAwesomeIcon icon="fa-solid fa-camera-web" />
This however returns an error:
Could not find icon { prefix: 'fas', iconName: 'camera-web' }
If I do something simple like
<FontAwesomeIcon icon={"camera" as IconProp} /> // I'm using typescript
Then it works, but it's not the icon I'm trying to use, just a generic one.