You are using an older version of AG Grid. To upgrade, please see the migration guide.
Full Error Text
getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.
To show this error text in the dev console, import the ValidationModule.