-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot set property 'String' of undefined #14
Comments
Can you show me |
import * as actions from "./actions"
const state = {
token: null,
user: {},
userinfo: {}
}
const mutations = {
setToken(state, token) {
state.token = token
},
setUser(state, user) {
state.user = user
},
setUserInfo(state, userinfo) {
state.userinfo = userinfo
},
clearData(state) {
state.token = null
state.user = {}
state.userinfo = {}
}
}
export default {
state,
actions,
mutations
} actions is empty |
Is |
token is string. I set token = "" replace null, It works. |
I cannot reproduce the bug. https://jsfiddle.net/vc7qt2ov/ |
I use vuejs-storage with vuex plugin vuex-orm. I create a repo try to reproduce the bug, but failed. I don't have time to test this, get back to 2.3.3. |
Does it works without |
I ran into a similar problem today. In my store's state, I had |
2.4.0 has this bug.
2.3.3 is ok.
my
store/index.ts
fileThe text was updated successfully, but these errors were encountered: