ankurk91/vue-loading-overlay

Nuxt 3 & vue loading overlay 6

Ischafak opened this issue · 5 comments

Hi, when i try to add this component to nuxt i am facing with a problem.

Cannot read properties of undefined (reading '_c')

vue-loading-overlay": "^6.0", this is my version

import Loading from 'vue-loading-overlay';
import 'vue-loading-overlay/dist/css/index.css';


export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.component('loading', Loading)
})

Is there any possibility to use this component with nuxt3

I will check the compatibility tomorrow and post back here

i will be very happy if there is a solution

I could not reproduce this issue on fresh Nuxt 3.0.0-rc.12

I manage the private component package of the company project by mapping several libraries. Only this project caused post-build problems. Currently, I solved the problem by using src instead of taking the dist of this library.
I didn't have time to take a closer look, but this library might not work properly on Vite because it was built and deployed as Webpack.

If someone can share a minimal reproduction of the issue, would be helpful