vaso2 / nuxt-fontawesome

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

ssr support? #4

Closed jericopulvera closed 6 years ago

jericopulvera commented 6 years ago

Is ssr supported?

I assumed it is since we're using nuxt but I'm getting these error on page refresh.

Could not find one or more icon(s) { prefix: 'fas', iconName: 'search' } {}

vaso2 commented 6 years ago

Yes, SSR is supported. Checked this exact icon, just in case, works fine. In my case it looks like that: <fa :icon="['fas', 'search']" class="md-icon md-icon-font md-theme-default"/> My versions: "@fortawesome/fontawesome": "^1.1.8", "@fortawesome/fontawesome-pro-light": "^5.0.13", "@fortawesome/fontawesome-pro-regular": "^5.0.13", "@fortawesome/fontawesome-pro-solid": "^5.0.13", "@fortawesome/vue-fontawesome": "0.0.22", "nuxt-fontawesome": "^0.2.0",

Check your config, imports etc.

vaso2 commented 6 years ago

Found that recent update of Fontawesome to version 5.1 has some breaking changes, I'll make an update ASAP.