Open ahoiroman opened 2 years ago
Hello,
I am trying to use this in a early adoption of nuxt3. The vue-wait/nuxt-plugin does not work, so I tried to create my own plugin:
vue-wait/nuxt
import { createVueWait } from 'vue-wait' export default defineNuxtPlugin((nuxtApp) => { const VueWait = createVueWait({ registerComponent: false,}) nuxtApp.vueApp.use(VueWait); return { provide: { wait: () => VueWait } } })
But unfortunately, this gives me an error:
Unhandled Promise Rejection: TypeError: $wait.is is not a function. (In '$wait.is("test")', '$wait.is' is undefined)
when I try to access it like this:
const {$auth, $wait} = useNuxtApp(); console.log($wait.is('test'))
@ahoiroman have you had any luck with this?
Hello,
I am trying to use this in a early adoption of nuxt3. The
vue-wait/nuxt
-plugin does not work, so I tried to create my own plugin:But unfortunately, this gives me an error:
when I try to access it like this: