icebob / vue-express-mongo-boilerplate

:star: MEVN Full stack JS web app boilerplate with NodeJS, Express, Mongo and VueJS

Home Page:http://vemapp.moleculer.services/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when after vuex module update to 2.5

euqip opened this issue · comments

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.

same error for me, just replaced all
export const NAMESPACE = blablabla;
with
let NAMESPACE = blablabla;