vaso2 / nuxt-fontawesome

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

TypeError: definition is undefined with faCrown on solid #3

Closed Extarys closed 6 years ago

Extarys commented 6 years ago

I have 20 icons set in my config file but when I add faCrown I got this error. Other icons seems to work fine. What would cause this error?

Traceback code:

{
    key: '_pullDefinitions',
    value: function _pullDefinitions(additions, definition) {
      var normalized = definition.prefix && definition.iconName && definition.icon ? { 0: definition } : definition;

      Object.keys(normalized).map(function (key) {
        var _normalized$key = normalized[key],
            prefix = _normalized$key.prefix,
            iconName = _normalized$key.iconName,
            icon = _normalized$key.icon;

        if (!additions[prefix]) additions[prefix] = {};

        additions[prefix][iconName] = icon;
      });

      return additions;
    }
vaso2 commented 6 years ago

Hi! As described here crown has been introduced in version 5.0.13, so double check that you are using FA >= 5.0.13

vaso2 commented 6 years ago

Just checked, seems to be exactly this case with FA version.