🐛 The bug
Usage with @nuxt/vite module doesn't work properly
🛠️ To reproduce
Steps to reproduce the behavior:
defineComponent imported from @nuxtjs/composition-apinpm run dev command and see following error: ERROR [Vue warn]: [vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.🌈 Expected behaviour
Should be work properly with nuxt-vite module
@theartkod At the moment, you'll need to install @vue/composition-api as a top level devDependency of your project rather than relying on the version provided by @nuxtjs/composition-api. Follow https://github.com/nuxt/vite/pull/79 for updates.
@danielroe thank you so much!
@theartkod You're very welcome ❤️
Most helpful comment
@theartkod At the moment, you'll need to install
@vue/composition-apias a top level devDependency of your project rather than relying on the version provided by@nuxtjs/composition-api. Follow https://github.com/nuxt/vite/pull/79 for updates.