Open gustawdaniel opened 1 year ago
Next in the same component I had errors:
_this.$el
and
optionsOrInstall.install is not a function
In Vue 2, the $slots.default property was a function that returned the default slot content. However, in Vue 3, the structure of slots has changed, and $slots.default is now an array rather than a function.
In Vue 2, slots were accessed using the $slots object, and you could access the default slot content using $slots.default(). This allowed you to treat the default slot as a function and render its content wherever needed.
In my case fixes was
this.$slots.default(0) => this.$slots.default[0]
and
} else if(optionsOrInstall && typeof optionsOrInstall === 'object' && 'install' in optionsOrInstall && typeof optionsOrInstall.install === 'function') {
instead of
else {
before
optionsOrInstall.install(base_editor, opt);
vue3 version: @kangc/v-md-editor@next
@code-farmer-i I am using 2.3.15
, please accept and release new version. This not break backward compatibility and fixing this problem.
https://github.com/code-farmer-i/vue-markdown-editor/pull/238/files
I have error
I am using vue3 and this lib in latest version.
I added console log on:
and there is array instead of function
This context can be helpful: I am using webpack5 with vue3 and see a lot of