vue-swing icon indicating copy to clipboard operation
vue-swing copied to clipboard

swing + nuxt/ssr

Open mavrick opened this issue 6 years ago • 5 comments

Hey there,

I'm having a bit of trouble dropping this into nuxt - has anyone here had any experience with ssr based apps?

Cheers

mavrick avatar Feb 21 '18 00:02 mavrick

I haven't tried using this with Nuxt yet. Do you know what needs to be changed to add compatibility with SSR? Otherwise, I don't have time to work on that now, but a PR would help a lot.

goweiwen avatar Feb 21 '18 02:02 goweiwen

I will have a few more attempts at getting this working and will let you know how I go.

mavrick avatar Feb 21 '18 03:02 mavrick

@mavrick : And how did it go? I have trouble to make this lib work with nuxt.js

arielkuzminski avatar Nov 14 '19 14:11 arielkuzminski

Just seen this today and I have this working fine in Gridsome with SSR.

All I did was include the component inside one of my own components, wrap the markup on the page of that component with <ClientOnly> tags, and then where I include my component in the javascript change the import to look like this:

components: { ComponentName: () => import('./Component.vue') .then(m => m.default) .catch() },

Truemedia avatar Dec 30 '19 12:12 Truemedia

hi guys ! did it finally work for all of you ? I'm having some issues :-(

nelsonlarocca avatar May 18 '20 17:05 nelsonlarocca