You are using an older version of AG Grid. To upgrade, please see the migration guide.
Full Error Text
applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.
To show this error text in the dev console, import the ValidationModule.