Делаю проект на vue 3, и консоль devtools выдает ошибку. Содержимое страницы не отображается.
app.js:617 Uncaught TypeError: Cannot read properties of undefined (reading 'use')
at eval (store.js?5e57:4:1)
at Module../src/vuex/store.js (app.js:140:1)
at __webpack_require__ (app.js:614:33)
at fn (app.js:847:21)
at eval (main.js:4:69)
at Module../src/main.js (app.js:129:1)
at __webpack_require__ (app.js:614:33)
at app.js:1719:109
at Function.__webpack_require__.O (app.js:660:23)
at app.js:1720:53
eval @ store.js?5e57:4
./src/vuex/store.js @ app.js:140
__webpack_require__ @ app.js:614
fn @ app.js:847
eval @ main.js:4
./src/main.js @ app.js:129
__webpack_require__ @ app.js:614
(anonymous) @ app.js:1719
__webpack_require__.O @ app.js:660
(anonymous) @ app.js:1720
(anonymous) @ app.js:1722
Вот main.js:
import Vue from 'vue'
import App from './App.vue'
import store from './vuex/store'
Vue.config.productionTip = false
new Vue({
render: h => h(App),
store
}).$mount('#app')
store.js:
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
let store = new Vuex.Store({
state: {},
mutations: {},
actions: {},
getters: {}
});
export default store;