Skip to content

Template compilation fails when using v-once inside template with v-if #7725

Open
@xanf

Description

Vue version

3.2.47

Link to minimal reproduction

https://sfc.vuejs.org/#__DEV__eNp9jk0KwkAMRq9SsnZmQAWhVNF7zEZt1KrzQyatC+ndTUsptYKrkPcleXnDIUbd1Ag5FIwuPo+MO+uLsmqkZNkIs0ZVl60Fphot9JmkMiZB8GfcMSYuzLhnptcGPIGwgMrFQKzcMep7Cl4+eHebdgiShTzrScfkxa63cGOOKTem9vFx1efgzF4yQ7XnyqEqg9uv9FKvN+JMPOUak1MnCq+EJEYLi8lxI7BBUoS+REL6K5vNfgln2Y+0c7bWt9B+AKlkgjU=

Steps to reproduce

Just open devtools console

What is expected?

Template is successfully compiled and rendered

What is actually happening?

Template compilation failed:

TypeError: Cannot read properties of undefined (reading '2')

System Info

No response

Any additional comments?

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions