Issue
I’m trying to load the icon “money-check” using angular-fontawesome; but getting message
FontAwesome: Could not find icon with iconName=money-check and prefix=fas
Most other icons work; a few i’ve found that don’t:
- money-check
- money-check-alt
- user-check
They are not listed as renamed under the upgrade guide.
My package.json:
"@fortawesome/angular-fontawesome": "0.1.0-10",
"@fortawesome/fontawesome-svg-core": "^1.2.0-11",
"@fortawesome/free-brands-svg-icons": "^5.1.0-8",
"@fortawesome/free-regular-svg-icons": "^5.1.0-8",
"@fortawesome/free-solid-svg-icons": "^5.1.0-8",
My app.module:
import {fas} from '@fortawesome/free-solid-svg-icons';
import {faPlayCircle, faThumbsUp, faThumbsDown} from '@fortawesome/free-regular-svg-icons';
library.add(fas, faPlayCircle, faThumbsUp, faThumbsDown);
my html:
<fa-icon class="icon type" icon="money-check" size="lg"></fa-icon>
Solution
Thanks @MBaas for pointing me down the right direction. I was following instructions on the angular-fontawesome page; and now reverted to the regular font awesome install. Here’s the package.json that fixed it:
"@fortawesome/angular-fontawesome": "0.1.0-10",
"@fortawesome/fontawesome": "^1.1.8",
"@fortawesome/fontawesome-free-brands": "^5.0.13",
"@fortawesome/fontawesome-free-regular": "^5.0.13",
"@fortawesome/fontawesome-free-solid": "^5.0.13",
"@fortawesome/fontawesome-svg-core": "^1.2.0-11",