In vuex, getter cannot get the corresponding mapping.

import Vue from "vue"
import Vuex from" vuex"
import * as actions from". / actions"
import * as getters from". / getters"
import * as mutations from". / mutations"
Vue.use (Vuex)

const state = {

 houseName:""

}
const store = new Vuex.Store ({

)
 state,
 actions,
 getters,
 mutations

})

export default store

[vuex] unknown getter: houseName

this is the unknown getter: houseName code in my store file. After Baidu, people always say that it is import * as getters from". / getters" is not finished here, but I have already finished it. I still report this error on the console

.
Mar.24,2021

you now have a look in vue-devtools to see if there is the name you defined in getters. If it doesn't indicate that there is something wrong with your vuex


let me test it.

Menu