Answer the question
In order to leave comments, you need to log in
Why is the console throwing an error on Vue 3?
I'm making a vue 3 project and the devtools console throws an error. Page content is not displayed.
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
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')
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
let store = new Vuex.Store({
state: {},
mutations: {},
actions: {},
getters: {}
});
export default store;
Answer the question
In order to leave comments, you need to log in
Are you writing in vue 3? https://v3.ru.vuejs.org/ru/guide/introduction.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question