Error when after vuex module update to 2.5
euqip opened this issue · comments
Benoit commented
After having updated vuex module to a version > 2.3 there is an error : [vuex] actions should be function or object with "handler" function but "actions.NAMESPACE" in module "session" is "/api/session", in browser.
This error can be avoided by replacing
export const NAMESPACE = "/api/session"
by
let NAMESPACE = "/api/session"
and the same for other store actions.
Why was the NAMESPACE exported? It seems to be used inside the action to get or put data.
Thanks for this boilerplate.
DimYLiK commented
same error for me, just replaced all
export const NAMESPACE = blablabla;
with
let NAMESPACE = blablabla;