ankurk91 / vue-loading-overlay

Vue.js component for full screen loading indicator :cyclone:
https://ankurk91.github.io/vue-loading-overlay/
MIT License
1.24k stars 101 forks source link

[vue-3] Bug: TypeError: Object(...) is not a function #95

Closed hasanparasteh closed 3 years ago

hasanparasteh commented 3 years ago

When i import the useLoading from the package I got the TypeError: Object(...) is not a function Error when i call the loading. look at the code at below:

import { useLoading } from 'vue-loading-overlay';
const loading = useLoading();
ankurk91 commented 3 years ago

You can not import useLoading , it is buggy at this moment,

https://github.com/ankurk91/vue-loading-overlay/issues/92