Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faWhale and faElephant not found #498

Open
lordvee opened this issue Mar 19, 2022 · 6 comments
Open

faWhale and faElephant not found #498

lordvee opened this issue Mar 19, 2022 · 6 comments

Comments

@lordvee
Copy link

lordvee commented Mar 19, 2022

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

@robmadole
Copy link
Member

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

@lordvee
Copy link
Author

lordvee commented Mar 28, 2022

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!

@robmadole
Copy link
Member

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

@lordvee
Copy link
Author

lordvee commented Apr 26, 2022

Hi,

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

cheers :)

@kangetsu121
Copy link

@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.

@lordvee
Copy link
Author

lordvee commented Jun 15, 2022

silly me sorry about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants