Comments (4)
Same problem
from vue-wait.
Same issue, but seems to work otherwise. Any workaround?
from vue-wait.
I think it is happening because when the dispatch happens, the wait
store has not yet been registered, as of now I just added this line
if (this.hasModule('wait'))
dispatch('wait/start', 'getCartItems', { root: true })
to remove the error
from vue-wait.
@bhaskar-nair2 i have another solution
guys you can try to install vue-wait as a plugin
for example create file src/plugins/vue-wait.js
and configure it like u wish
import { createVueWait } from 'vue-wait';
const vueWait = createVueWait({
useVuex: true,
vuexModuleName: 'wait',
registerComponent: true,
componentName: 'v-wait',
registerDirective: true,
directiveName: 'wait'
});
export default vueWait;
and after that you can import and use it in main.js
file
import store from './store';
import { createApp } from 'vue';
import vueWait from './plugins/vue-wait';
import App from './App.vue';
const app = createApp(App);
app.use(store);
app.use(vueWait);
app.mount('#app');
from vue-wait.
Related Issues (20)
- Vue.js 3 support HOT 3
- Vue 3 Complaining createVueWait() is not a function HOT 3
- NPM v7 could not resolve peer dependency for vue 3 HOT 2
- Twice as big when introducing Vue 3
- Vuex not initialized HOT 2
- Usage in nuxtjs3 (plugin attempt) HOT 1
- Using with vite // TypeError: VueWait is not a constructor HOT 3
- Vue3 Composition API?
- Installing latest version still requires Vue 2 HOT 2
- vue-wait integration for pinia
- sponsor HOT 1
- mapWaitingActions
- Compiled version is not compatible with ie10
- Add integration with nuxt asyncData/fetch
- Use vue-wait with vue-router and beforeRouteEnter HOT 1
- get is invoked when the v-wait is not complete.
- Failing on Server Side Rendering in Nuxt HOT 3
- vuex-module-decorators Integration
- Demo link does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-wait.