vue-markdown-editor icon indicating copy to clipboard operation
vue-markdown-editor copied to clipboard

this.$slots.default is not a function

Open gustawdaniel opened this issue 1 year ago • 4 comments

I have error

this.$slots.default is not a function
render@webpack-internal:///../../node_modules/@kangc/v-md-editor/lib/base-editor.js:5034:20
compatRender@webpack-internal:///../../node_modules/@vue/compat/dist/vue.runtime.esm-bundler.js:4896:21
renderComponentRoot@webpack-internal:///../../node_modules/@vue/compat/dist/vue.runtime.esm-bundler.js:2839:16
componentUpdateFn@webpack-internal:///../../node_modules/@vue/compat/dist/vue.runtime.esm-bundler.js:8833:46
run@webpack-internal:///../../node_modules/@vue/compat/dist/vue.runtime.esm-bundler.js:587:19

I am using vue3 and this lib in latest version.

Screenshot from 2023-06-06 00-22-46

I added console log on:

this.$slots.default 

and there is array instead of function

image

This context can be helpful: I am using webpack5 with vue3 and see a lot of

(deprecation COMPILER_NATIVE_TEMPLATE) <template> with no special directives will render as a native template element instead of its inner content in Vue 3

gustawdaniel avatar Jun 05 '23 16:06 gustawdaniel