Skip to content

Cannot read property 'prefix' of undefined #34

@anandbhaskaran

Description

@anandbhaskaran

I tried to followed all the step as mentioned here: https://www.npmjs.com/package/@nuxtjs/fontawesome

My nuxt.config.js

buildModules: [
    // https://go.nuxtjs.dev/typescript
    '@nuxt/typescript-build',
    ['@nuxtjs/fontawesome',{
      component: 'fa',
      suffix: true,
    },],
  ],
fontawesome: {
    icons: {
      solid: ['faHome'],
      regular: ['faUserSecret'],
      brands: ['faGithub'],
    }
  },

My usage of the component

<fa :icon="['fab', 'github']"/>

Expected outcome:
Works out of the box

Actual Outcome:
App crashes with the following error on the console
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions