Home

Issue: 995

Lib vue-picture-input not working with SSR

[issue link]

Hi,

I have a problem when I load a page directly from the server (not encountered when dynamically loaded) :

Nuxt.js Error:
ReferenceError: File is not defined
    at Object.237 (PictureInput.vue:89:0)

from this component: https://github.com/alessiomaffeis/vue-picture-input/blob/master/PictureInput.vue

It seems that SSR is causing this, how to make an exception so it doesnt load it before the page is mounted?

Thanks!

This question is available on Nuxt.js community (#c870)