Closed Tchoupinax closed 2 years ago
hi @Tchoupinax, are you using client mode plugin? it should work server-side.
// plugins/tippy.ts
import VueTippy from 'vue-tippy';
import 'tippy.js/dist/tippy.css'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueTippy, {
defaultProps: {
arrow: true
},
flipDuration: 0,
})
})
// pages/index.vue
<template>
<div>
<button v-tippy="{ content: 'hi' }" >Hello</button>
<tippy content="123">
<button>Hello</button>
</tippy>
</div>
</template>
Hello @KABBOUCHI Yes it works in this way :) I used it as client plugin and indeed the error come from that.
Thank you
Hello,
I totally love this project and I used it a lot with a Nuxt 2 project. Today, I'm working on a Nuxt 3 project and I want to install the directive
v-tippy
. However, I met some issue. I ran between issues I found on this project but nothing helped me.Does Vue 3 / Nuxt 3 is supported for this project and if it is the case, how can I make it working?
Thank you Have a nice day!