vue2-selectize icon indicating copy to clipboard operation
vue2-selectize copied to clipboard

How to use this in NuxtJS

Open umardraz opened this issue 4 years ago • 1 comments

Hello how I can use this plugin in NuxtJS?

I tried to use in my NuxtJS app but wasn't worked due to this error

Cannot read property 'document' of undefined

Would you please help me fix this

umardraz avatar Jun 27 '20 09:06 umardraz

Although it's a bit late; here's how I've solved this issue in the past:

It seems like this component is client only, so try wrapping the component in <client-only> </client-only> tags

Heres nuxt's documentation on how to use <client-only> tags

RHellenes avatar Aug 29 '21 10:08 RHellenes