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

Brand icons are not loading #40

Open
gregmarzio opened this issue Sep 11, 2021 · 2 comments
Open

Brand icons are not loading #40

gregmarzio opened this issue Sep 11, 2021 · 2 comments

Comments

@gregmarzio
Copy link

Solid icons are loading but Brand icons are not. Any ideas if this is a bug?

Screenshot-2021-09-11-171158

nuxt.config.js file

...
buildModules: [
    '@nuxtjs/fontawesome',
],
...
fontawesome: {
    icons: {
        brands: [
            'faFacebookSquare',
            'faGithubSquare',
            'faInstagram',
            'faLinkedin',
            'faPinterestSquare',
            'faTelegram',
            'faTwitterSquare',
            'faVimeoSquare',
            'faWhatsappSquare',
        ],
        solid: [
            'faCircle',
            'faDesktop',
            'faFilePdf',
            'faMobileAlt',
            'faPhoneSquareAlt',
            'faPencilRuler',
            'faServer',
        ],
    },
},

package.json

...
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"@fortawesome/free-regular-svg-icons": "^5.15.4",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/vue-fontawesome": "^2.0.2",
"@nuxtjs/fontawesome": "^1.1.2",
...
@skyler-saville
Copy link

skyler-saville commented Sep 18, 2021

Hey! not sure if you found a fix for this. But I believe the issue lies with the prefix being incorrect. The brand prefix is 'fab' instead of 'fas' (i.e. 'fontawesome brands' instead of 'fontawesome solid'). Hope that helps.
<font-awesome-icon :icon="['fab', 'twitter']" />

@gregmarzio
Copy link
Author

Yes, I had to add for the brand icons. The solid icons did not require this.

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