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

Cannot read property 'prefix' for icon: shapes #170

Open
jzrskc opened this issue Aug 7, 2018 · 2 comments
Open

Cannot read property 'prefix' for icon: shapes #170

jzrskc opened this issue Aug 7, 2018 · 2 comments

Comments

@jzrskc
Copy link

jzrskc commented Aug 7, 2018

Other icons work perfectly, only so far the problem with this one.

Icon: class="fas fa-shapes"
Error: Uncaught TypeError: Cannot read property 'prefix' of undefined

Code:
import { library } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faShapes } from '@fortawesome/free-solid-svg-icons';
library.add(faShapes);

FontAwesomeIcon icon="shapes"

@robmadole
Copy link
Member

This icon was added in 5.2.0. What version are you using of free-solid-svg-icons?

@jzrskc
Copy link
Author

jzrskc commented Aug 13, 2018

"@fortawesome/fontawesome-svg-core": "^1.2.2",
"@fortawesome/free-regular-svg-icons": "^5.2.0",
"@fortawesome/free-solid-svg-icons": "^5.2.0",
"@fortawesome/react-fontawesome": "^0.1.1",

After reinstalling packages for the second time, now works perfectly.

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

2 participants