By Jan Lghr


2018-07-12 00:16:07 8 Comments

I own a FontAwesome Pro License and I use the Vue-FontAwesome Component.

When I try to import all icons from both the free and Pro repo I get an "Duplicate declaration error ..." and if I change the declaration name it cant be found anymore.

import { library } from '@fortawesome/fontawesome-svg-core'
import { fab } from '@fortawesome/free-brands-svg-icons'
import { fas } from '@fortawesome/pro-solid-svg-icons'
import { far } from '@fortawesome/pro-regular-svg-icons'
import { fal } from '@fortawesome/pro-light-svg-icons'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { far } from '@fortawesome/free-regular-svg-icons'

library.add(fab)
library.add(fas)
library.add(far)
library.add(fal)

How do I import all icons from Free and Pro?

thanks, any advise is much appreciated :)

0 comments

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] fontawesome error "Could not find one or more icon"

1 Answered Questions

[SOLVED] Fontawesome 5 in Android, 3 files

2 Answered Questions

[SOLVED] Import all icons from Fontawesome

3 Answered Questions

0 Answered Questions

Font Awesome - node recognizing some not others

5 Answered Questions

[SOLVED] Using FontAwesome with Sass

0 Answered Questions

Font Awesome 5: how to use inside parent svg with vue-fontawesome

1 Answered Questions

[SOLVED] how to avoid duplicate import and component declarations in VueJS

  • 2017-09-26 21:00:15
  • dcsan
  • 357 View
  • 1 Score
  • 1 Answer
  • Tags:   import vue.js

4 Answered Questions

[SOLVED] How to stack fontawesome icons

  • 2017-08-24 08:53:32
  • Mukil Deepthi
  • 115 View
  • 0 Score
  • 4 Answer
  • Tags:   css3 font-awesome

1 Answered Questions

Sponsored Content