The issue is the loading order of plugins. In your case, with a plugin folder called card, this is loaded before the editor plugin itself, which then results in the error.
If you change the plugin’s folder name to something like editorcard-block
, you can work around this issue.