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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ec0b5e-2afc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ec0b5e-2afc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?