question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compability with vue-fontawesome

See original GitHub issue

I am using the vue-fontawesome components for all the icons in my project, so is there a way to use this with it?

The component looks like this: <font-awesome-icon :icon="['far', 'trash-alt']"></font-awesome-icon>

vue-fontawesome

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
pWnHcommented, Mar 12, 2018

@shpfive your solution works! @shakee93 could we get this solution in the official release, so i dont have to maintain my own ‘fix’-version? 😃

3reactions
juljupycommented, Jun 26, 2019

Hi, hope you all are doing well.

I was facing the same issue, I’m using vue-toasted v. 1.1.27 and I did this to make it work:

import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { library, dom } from '@fortawesome/fontawesome-svg-core'
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'
library.add(faExclamationTriangle)
dom.watch() // This was the line that did the trick
Vue.component('font-awesome-icon', FontAwesomeIcon)

// Then I use it this way
this.$toasted.show('Ocurrió un error',{
    type: 'error',
    icon : {
        name: 'fas fa-exclamation-triangle'
    }
})

Hope it helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set Up with Vue | Font Awesome Docs
We'll cover the basics of installing core utility packages, icon installation, and installing the Vue component, so that you can make awesome stuff...
Read more >
@fortawesome/vue-fontawesome - npm
Official Vue 2 component for Font Awesome. Latest version: 2.0.9, last published: 2 months ago. Start using @fortawesome/vue-fontawesome in ...
Read more >
FortAwesome/vue-fontawesome - GitHub
To find the Vue setup, go to our Web docs and click the "Set Up with Vue" (left hand side menu). How to...
Read more >
Font Awesome icons in Vue.js apps: A complete guide
Font Awesome provides good integration with Vue, allowing us access to lightweight icons in our production application. This allows us to build ...
Read more >
Using Font Awesome in Vue 3 - Stack Overflow
Install latest-3 ( 3.0.1 ) of vue-fontawesome , which is compatible with Vue 3, and the icon dependencies: · In main.js , select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found