Skip to content

cannot use 'in' operator to search for "__vInternal" #4364

@oliverpool

Description

@oliverpool

Version

3.2.3

Reproduction link

https://sfc.vuejs.org/#ey...

Steps to reproduce

I have made a component, which has a with a v-bind:

    <slot v-bind="option" />

When the "option" variable is a string, it throws an error with vue 3.2.3 (it worked just fine in 3.1.5).
If option is an object, everything works fine.

What is expected?

<slot v-bind="option" /> should work if option is a string.

What is actually happening?

<slot v-bind="option" /> throws an error:

TypeError: cannot use 'in' operator to search for "__vInternal" in "text of the option"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions