[Vuejs]-How to fix Vue error `[Vue warn]: data functions should return an object`?

0👍

State had to be exported like

export default 
{

and not like

export const state =
{

Leave a comment