fengyuanchen/vue-feather

Not compatible with vue SSR

davidgiga1993 opened this issue · 2 comments

When using vue-feather with the SSR feature of vue (for example with vuepress) adding this plugin causes issues since it's accessing document which is not available during SSR rendering.

The issue occurs after the import at this line

var HEAD = document.head || document.getElementsByTagName('head')[0];

Would it be possible to refactor this so it's compatible with SSR?

Just release a new version for this, try it.

Hmm. I still got this error. Checking to see if got things set up correctly, though...