How to solve this below issue??
TypeError: action.default is not a function
at context.route.load.then.action (/home/go/projects/games/src/router.js:16:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
How to solve this below issue??
TypeError: action.default is not a function
at context.route.load.then.action (/home/go/projects/games/src/router.js:16:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
First, check what is present in then((action)
add check if (action && action.default === 'function')
if it is true then call the function action.default
if statement prevent the TypeError