Skip to content

this.$slots.default is not a function #236

@gustawdaniel

Description

@gustawdaniel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions