Open andrei4002 opened 1 year ago
I had the same error, but fixed it by having 1 single element in the vue component.
Vue allows only a single element as a template root. If multiple root elements are specified, unintended behaviors occur as follows: For single-file component with a . vue extension, Vue throws a compile error.
See https://deepscan.io/docs/rules/vue-multiple-template-root
Change your DummyPluginComponent.vue template to:
<template>
<div>
<div>[dummy plugin]</div>
<input type="text">
</div>
</template>
Not sure if it's related to my previous issue, but there's a second problem happening when running my vue component as a plugin (I can only seem to reproduce it when the vue component plugin block is the first block, and in some conditions mentioned below)
I created a demo repo to illustrate the issue (use the vue-unmount-error branch) https://github.com/andrei4002/editorjs-test
The scenario is
although this error comes up within vue i'm not sure entirely what part of the workflow causes it, if it's an editor issue or a vue issue, and why only when it's the first block (I'm only getting this vue error in the context of using the vue component in the editor)
a few other things i noticed: