Etheryte / vue-auto-dropzone

A Dropzone component for Vue. Typescript support, native slots, and more.
MIT License
22 stars 1 forks source link

Support for SSR #5

Open JohannesLichtenberger opened 4 years ago

JohannesLichtenberger commented 4 years ago

Seems SSR as of now is not supported, as I'm getting an error: window is not defined. I'm using Nuxt, and tried your other component before. But this one replaces it, right?

Etheryte commented 4 years ago

You are correct in both regards, this component is built to be a successor and SSR is currently not supported yet. SSR is the only item remaining in the must have category in the project TODO, but for the time being, my work duties have higher priority than OSS.

JohannesLichtenberger commented 4 years ago

Yeah, no problem. For now, I'm using a custom solution, as I couldn't get it to load only on the client (Browser) side. But I'm super new to front-end development, so it might be simply me. But even a Middleware to enable spa mode instead of universal mode didn't work out somehow, presumbly because I use TypeScript mostly. However, the custom solution now works. Just for uploading and shredding files into my temporal document store using HTTP(S) :-)

stale[bot] commented 4 years ago

This discussion has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still relevant, please comment explaining why. Thanks!