Icon not working with vue
See original GitHub issueBased on the user guide, same code, but not working.
import FontAwesomeIcon from '@fortawesome/vue-fontawesome'
export default {
components: {
FontAwesomeIcon
}
}
<button class="btn btn-primary btn-lg btn-block">
edit
<font-awesome-icon icon="edit" />
<button>
Threw error in chrome console:
Check not find one or more icon(s) {prefix: "fas", iconName: "edit"} {}
neither this would work:
<button class="btn btn-primary btn-lg btn-block">
edit
<font-awesome-icon :icon="['fas', 'edit']" />
<button>
Any explanation ? Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:22
- Comments:12 (5 by maintainers)
Top Results From Across the Web
vue.js - vuetify icon not showing - Stack Overflow
This is the correct answer! I just did a new Vue-cli project, following the Vuetify quick start and copied one of their templates...
Read more >Troubleshoot | Font Awesome Docs
Having trouble using Font Awesome with Vue? ... it as painless as possible, but you may need to make some changes in your...
Read more >Font Awesome icons in Vue.js apps: A complete guide
The Font Awesome icon collection is a library of free, easy-to-use icons. In this tutorial, learn to add those icons to your Vue.js...
Read more >Icons | BootstrapVue
Bootstrap Icons are designed to work with Bootstrap components, from form controls to navigation. Bootstrap Icons are SVGs, so they scale quickly and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Check my post here: https://github.com/FortAwesome/vue-fontawesome/issues/14#issuecomment-351474573
Basically, you also need this:
This way you only include the icons you will actually use.
Not sure if this is ideal but it works for me 😃