Building in Production -> put to the Server

give an error: Vuex handler functions must not be anonymous.
Resolve:
npm cache clean --force
npm install
npm i npm@latest -g
This commit is contained in:
paolo
2018-12-22 23:30:02 +01:00
parent bd832d3f92
commit 02e5725ba9
6 changed files with 10 additions and 33 deletions

View File

@@ -12,14 +12,11 @@ const state: IGlobalState = {
}
const b = storeBuilder.module<IGlobalState>('GlobalModule', state)
const stateGetter = b.state()
// Getters
namespace Getters {
const conta = b.read(function conta(state): number {
return state.conta
})
const conta = b.read(state => state.conta , 'conta')
export const getters = {
get conta() {
@@ -51,6 +48,8 @@ namespace Actions {
}
const stateGetter = b.state()
// Module
const GlobalModule = {
get state() { return stateGetter()},