Slack: Cannot read property ‘appTeams’ of undefined

By | 09/23/2020
 

I have Slack desktop running on Arch Linux.

It was installed from AUR and usually works fine.

But today after rebooting my laptop Slack won’t start again sying it has the 'appTeams' property error:

slack
Initializing local storage instance at path: /home/setevoy/.config/Slack/local-settings.json
Failed to get path for key, this may be expected: /home/setevoy/.config/autostart
(node:24199) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(node:24199) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'appTeams' of undefined
...

Slack version:

slack --version
4.9.1

Tried to downgrade it to the 4.8.0 – but this didn’t help.

The solution is to remove the whole ~/.config/Slack directory.

Keep in mind, that after that you’ll have to log in to all your Slack workspaces.

Remove the catalog:

mv ~/.config/Slack Temp/

Restart Slack:

Done.