vaso2 / nuxt-fontawesome

Nuxt module for Fontawesome 5 integration with ES6 imports and tree shaking
MIT License
107 stars 4 forks source link

Not possible to import the same icons of different weight. #2

Closed moltar closed 6 years ago

moltar commented 6 years ago
    [
      'nuxt-fontawesome', {
        imports: [
          {
            set: '@fortawesome/fontawesome-pro-light',
            icons: [
              'faMinus',
              'faPlus'
            ]
          },
          {
            set: '@fortawesome/fontawesome-pro-solid',
            icons: [
              'faMinus',
              'faPlus'
            ]
          }
        ]
      }
    ]

Will result in:

ERROR in ./.nuxt/templates.plugin.01c23300.js
Module build failed: Duplicate declaration "faMinus"

  13 |
  14 |
> 15 |     import  { faMinus,faPlus } from '@fortawesome/fontawesome-pro-solid'
     |                                                 ^
  16 |     fontawesome.library.add(faMinus,faPlus)
  17 |
  18 |

 @ ./.nuxt/index.js 264:0-104
 @ ./.nuxt/client.js
Extarys commented 6 years ago

Same error, sadness follows.