0👍
According to the error, you don’t have the _user
property when you are trying to access it via vuex getter. I think you are fetching it from and API, as i understood.
On your state, set profile as empty/nested object with all fetchable properties to get rid of errors.
Like;
const state: {
profile: {
_user: { _id: null }
}
}
- [Vuejs]-How to match Node.js server's ESLint rules to my Vue.js frontend's ESLint rules?
- [Vuejs]-Vue reactivity issues in component making asynchronous server requests
Source:stackexchange.com