The component does not work anymore on server-side rendering
Tarrask opened this issue · comments
This concern nuxt.js, the server is complaining about "document is not defined" if we register the Icon component in a plugin as a global component.
the reason that I identify is that the distribution now ship a "precompiled" Icon.js
file instead of Icon.vue
file and the Icon.js file has referenced to document.
Is it possible to ship both files ? So with nuxt.js we can, use it like that in a plugin :
import Vue from 'vue'
import Icon from 'vue-awesome/components/Icon.vue'
Vue.component('FaIcon', Icon)
I also can't run my Nuxt project because of this server-side issue
I also want to use this package in my nuxt project. Which version supports server-side rendering?
I use version 3.5.4, if I remember correctly, 4.x.x do not support ssr
Sorry folks. I've been busy recently and I'll take a look at this when I get time. Before that, you can stick to v3 for now.
~4.1.0 works