i have this error when run my app :
WARNING Compiled with 1 warnings 11:50:40 PM warning in ./src/store/store.js "export 'createStore' was not found in 'vuex'
I installed vuex by npm install --save vuex
I'm using vue 3
my Store.js:
import { createStore } from 'vuex';
import Movie from './Modules/Movie';
import post from './Modules/post';
const store = createStore({
modules: {
post,
Movie,
},
});
export default store;
my main.js:
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store/store.js';
const app = createApp(App);
app.use(store);
app.use(router);
app.mount('#app');