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.

Improve documentation for getting started

See original GitHub issue
<font-awesome-icon :icon="['fab', 'font-awesome']" />
  import FontAwesomeIcon from '@fortawesome/vue-fontawesome'
  export default {
    components: {
      FontAwesomeIcon
    }
}

ERROR:

VM31702 index.js:476 Check not find one or more icon(s) 
{prefix: "fab", iconName: "font-awesome"}
iconName
:
"font-awesome"
prefix
:
"fab"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

8reactions
akinhwancommented, Feb 17, 2018

I think the documentation on the npm package page could be clearer. I particularly had issues understanding the latter portion where it explains library configuration. I followed the code exactly and it has not worked as the “basics” portion has for me.

"It can be tedious to always import the icons individually so a library can be configured and shorthand can be used when rendering the icon.

Define a library that can be used without explicit imports:"

7reactions
shershen08commented, May 9, 2018

I am really lost… it was a simple thing - an icon, piece of picture … why doing all all this hell of complicated a mess out of it - https://fontawesome.com/how-to-use/use-with-node-js ? surprisingly it doesnt’ work
screen shot 2018-05-09 at 21 44 43

I am usiung vue-cli webpack template project

I have following in main.js

import fontawesome from '@fortawesome/fontawesome'
import faUser from '@fortawesome/fontawesome-free-regular/faUser'
import FontAwesomeIcon from "@fortawesome/vue-fontawesome"
fontawesome.library.add(faUser)

//also tried all those in various combinations:
//import {faUser} from '@fortawesome/fontawesome-free-regular'
//import regular from '@fortawesome/fontawesome-free-regular'
//fontawesome.icon({ prefix: 'fas', iconName: 'user' })
//fontawesome.icon({ prefix: 'fas', iconName: 'user' })
//fontawesome.library.add(regular)

Vue.component('font-awesome-icon', FontAwesomeIcon) 

and this markup in other component:

      <i class="fas fa-user"></i>
      <i class="fab fa-user"></i>
      <font-awesome-icon :icon="['fa', 'user']" />
      <font-awesome-icon icon="user" />

I get only error in the console, no visible icons

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Build the Best User Documentation (New Guide) | Blog
Have a product or service that needs user documentation? Here are some simple tips on how to build the best documentation for consumers....
Read more >
A beginner's guide to writing documentation - Write the Docs
This is a guide to documenting your first project. The first time is always the hardest, and I hope this guide will get...
Read more >
How to Create Great Technical Documentation: Ultimate Guide
Learn how to create great technical documentation - see examples of the world's best documentation, how to structure documentation, tools, and tips for ......
Read more >
How to build an effective customer support knowledge base
1. Choose what to document · 2. Create easy-to-understand content · 3. Find a good host · 4. Organize your help center ·...
Read more >
How to Write a Getting Started Guide - DocumentWrite
Provide an overview for users to know what you will provide them in this guide and what they will learn. · Show is...
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