I’ve tried sharing an Anki deck several times and have gotten this message every time:
An error occurred while sharing. Please ensure you can export the deck locally using the latest Anki version, then try sharing again. If issues continue, please post on the forums.
I’m using Anki 2.1.65 and have successfully exported the deck with no issues, but when I tried to share the deck afterwards I got the same message.