-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt Support #25
Comments
Nevermind, using the a la carte treeshaking in the scope of the component fixed the issue. 👍 💯 |
@Mailines can you show me how to do it? |
@geocare <template>
<no-ssr>
<v-image-input
v-model="imageData"
:image-quality="0.85"
clearable
:disabled="uploadImageLoading"
/>
</no-ssr>
</template>
<script>
import VImageInput from 'vuetify-image-input/a-la-carte'
export default {
ssr: false,
components: {
VImageInput
}
}
</script> In nuxt.config.js additionally add the library in the build block to transpile. // nuxt.config.js
build: {
transpile: ['vuetify/lib', 'vuetify-image-input']
}, I hope this helps. |
Thanks! It worked! @Mailines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I like this library alot, nice work but:
I use it with Nuxt and registered the component global as a plugin. With the DEV-Server everything works fine, but when I compile the application the upload-icon is not displayed and the element is not longer centered.
What do I have to change?
On DEV-Server
In Production:
The text was updated successfully, but these errors were encountered: