Closed Pranavraut033 closed 3 years ago
Hey @Pranavraut033, there are already instructions in the documentation on how to integrate vue-image-upload-resize in nuxt.js.
import Vue from 'vue'
import ImageUploader from 'vue-image-upload-resize'
Vue.use(ImageUploader)
2. In your nuxt.config.js, add the client plugin:
```javascript
export default {
// ... other config
plugins: [
{ src: '~/plugins/vue-image-upload.js', mode: 'client' },
]
}
<template>
<client-only>
<image-uploader
:debug="1"
></image-uploader>
</client-only>
</template>
Thanks! @KerneggerTim I guess I missed reading that 😅. Thank you for being helpful.
Throws the following error when using as a plugin in Nuxt JS.
in
~/plugins/image-uploader.js
Work Around
Using
<client-only>
tag provided by nuxtand registering components locally as