Skip to content

mountChildren Uncaught TypeError: Cannot read properties of null (reading 'length') #10007

Closed
@codesyofo

Description

@codesyofo

Vue version

3.4.5

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-dp5c9p?file=src%2FApp.vue

Steps to reproduce

<div>
  {show.value ? <div>show</div> : <></>}

  <button onClick={(show.value = !show.value)}>toggle</button>
</div>

--> Uncaught TypeError: Cannot read properties of null (reading 'length')

<div>
  {show.value ? <div>show</div> : <> </>}

  <button onClick={(show.value = !show.value)}>toggle</button>
</div>

--> it's ok

What is expected?

.

What is actually happening?

.

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🍰 p2-nice-to-havePriority 2: this is not breaking anything but nice to have it addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions