react-fontawesome icon indicating copy to clipboard operation
react-fontawesome copied to clipboard

faWhale and faElephant not found

Open lordvee opened this issue 2 years ago • 6 comments

Hey

if i try to import faWhale and/or faElephant, they don't appear to exist, whereas the web site lists them in @fortawesome/free-solid-svg-icons 5.15.3

Here is the link: https://fontawesome.com/v5/icons/elephant?s=solid https://fontawesome.com/v5/icons/whale?s=solid

How can i import them? all other icons so far import fine

thanks

lordvee avatar Mar 19 '22 08:03 lordvee

@lordvee how are you trying to import them? Can you share the error message?

robmadole avatar Mar 26 '22 20:03 robmadole

Hi

the error is

Attempted import error: 'faWhale' is not exported from '@fortawesome/free-solid-svg-icons' (imported as 'faWhale').

I import it like every other icon:

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faWhale, faFighterJet, faHeadset, faHandPointRight, faPhone, faLifeRing } from '@fortawesome/free-solid-svg-icons'

And use it like so:

`<FontAwesomeIcon icon={faWhale} className="iconPrimary" size="2x" />`


Same goes for faElephant

thanks!

lordvee avatar Mar 28 '22 11:03 lordvee

@lordvee can you tell us how your project is setup? Are you using React Create App? Next.js?

robmadole avatar Apr 15 '22 21:04 robmadole

Hi,

This is a gatsby project. Is this the info you are looking for?

cheers :)

lordvee avatar Apr 26 '22 09:04 lordvee

@lordvee Hi, I found faElephant and faWhale icons are for Pro, so we cannot use them with @fortawesome/free-solid-svg-icons since it's free. You can know they are Pro Icons by seeing ":rocket: Start Using This Pro Icon" on these pages, so you need to upgrade your license to Pro to use these icons.

I think it's helpful to filter icons by checking the box "Free" on the left side of search pages if you need to use only free icons. By filtering, you can also know elephant and whale icons are not free because they don't appear on the search result.

I hope this info could help you, thank you.

kangetsu121 avatar May 14 '22 06:05 kangetsu121

silly me sorry about it

lordvee avatar Jun 15 '22 16:06 lordvee