It appears I am missing some icons.
According to the documentation the following icons should be included in the free-solid-svg-icons package.
However, I've noticed some icons (e.g. fa-file-export/faFileExport) are missing in /node_modules/@fortawesome/free-solid-svg-icons/index.d.ts
Is this intentional?
I've noticed that faPen, faPencilRuler and many other pens are missing as well.
// @fortawesome/free-solid-svg-icons/index.d.ts
// line 397
export const faPaw: IconDefinition;
export const faPenSquare: IconDefinition; // ???
export const faPencilAlt: IconDefinition;
You need to switch from the prerelease versions of the icon packages to 5.1.0 (-11 is prerelease).
Yeah that fixed it, thanks :-)
@canpan14 Sorry but what do you mean exactly? I am having the same issue.
This is my package.json:
```
[...]
dependencies: {
[...]
"@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/react-fontawesome": "0.0.20",
[...]
}
[...]
I tried to update all packages but without success (no update available).
You need to change those three icon packages to version 5.1.0. Just do it manually. Because of the ^ you have the version is locked.
This is what it says:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @fortawesome/[email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2018-07-12T15_13_01_978Z-debug.log
Oh my bad. If you look at the font awesome docs you'll see with the new versions of these packages you need to change the dependency names.
https://fontawesome.com/how-to-use/with-the-api/setup/importing-icons#packages
The react font awesome docs walk you through the setup if you look at their page.
Well...

This is indeed what it says, which is 5.1.0, but it does not seem to work.
Also, npm says that 5.0.13 is the most recent:

Without seeing your code it's hard to tell what's wrong. Make sure you follow the full documentation for switching to 5.1.0 there are multiple changes that need to be made. Including code changes
@GiampaoloFalqui the fontawesome-free-solid has been replaced by free-solid-svg-icons.
Most helpful comment
You need to switch from the prerelease versions of the icon packages to 5.1.0 (-11 is prerelease).