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 can't 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?

0 comments

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Import all icons from Fontawesome

1 Answered Questions

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

1 Answered Questions

[SOLVED] Fontawesome 5 in Android, 3 files

3 Answered Questions

0 Answered Questions

Font Awesome - node recognizing some not others

5 Answered Questions

[SOLVED] Using FontAwesome with Sass

1 Answered Questions

1 Answered Questions

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

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

2 Answered Questions

Sponsored Content