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

Unknow custom element: <fa> #21

Open
Sebastiangperez opened this issue Oct 19, 2020 · 7 comments
Open

Unknow custom element: <fa> #21

Sebastiangperez opened this issue Oct 19, 2020 · 7 comments

Comments

@Sebastiangperez
Copy link

hi guys, i got this error and i did everything that you said in the docs

Im using the latest version of nuxt.js

Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Pages/index.vue> at pages/index.vue

<Layouts/default.vue> at layouts/default.vue

Any tougths ?

@josh-unwin
Copy link

I'm getting the same thing. Finding the docs quite confusing.

@Sebastiangperez
Copy link
Author

@josh-unwin , yes, is not very helpfull, they need to change a little bit the documentation, i have to install another package for node
"@fortawesome/fontawesome-free": "^5.15.1",

and i have this in the nuxt

'@nuxtjs/fontawesome',

and this in nuxt.config.js

fontawesome: {
    component: 'fa',
    icons: {
      solid: true,
      brands:true

    }
  },

Maybe this will help you. and i uses like this :

<fa icon="film" />

@Sebastiangperez
Copy link
Author

@josh-unwin did it work ??

@josh-unwin
Copy link

Hey thanks @Sebastiangperez, I only just went back to this project, yep that's working now! Thanks!

@pimlie
Copy link
Member

pimlie commented Nov 4, 2020

@Sebastiangperez They includes you, you are part of the nuxt-community too! ;)

Could you please have a look at submitting a PR with changes to make the docs more understandable?

@JoseFortunato
Copy link

Hello,

I have similar issue. I have working perfectly in pages, but when a try to use in components and layouts, i have de same message: Unknown custom element: <fa> - did you register the component correctly?

I tried the suggestion of @Sebastiangperez, but didn't work to me.

@schneefux
Copy link

See the component option:

component
Default: FontAwesomeIcon

Installing another package is not necessary. You need to use <FontAwesomeIcon> instead of <fa>. <fa> is only available if you set component: 'fa' in the options. The readme examples mix both styles.

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

5 participants