Skip to content

When the variable in a v-for loop has the same name as the component being rendered, the element may not render in the production build. #11730

@ryne6

Description

@ryne6

Vue version

@42e8df6

Link to minimal reproduction

https://play.vuejs.org/#eNp9UUFOwzAQ/MrKl15CoracSooEqAc4AAJumEOVbIKLY1u2EyJV+TtrRylFQCXL8s6Mx+PdPbsyJu1aZCuWu8IK48Ghb80lV6Ix2nq40Y2ByuoGZmkWiiCfXXDFVaGV8yAFbWt4nSewSGD5Fpg8G83IhgqPjZFbj1QB5NGwO6u0XXMWC11FE84gI0meHelZwryjdypRpzunFeXcBxfOCropJNoH4wXl4GwFkQncVkr9eRcxb1tMJrx4x+LjD3zn+oBx9mjRoe2QswPnt7ZGyhbozfM99nQ+kI0uW0nqE+QTOi3bkHGUXbeqpNhHupj2NnZbqPrFbXqPyk2fCkGDcoh6zqj7oWn/ff077jI9j/e4GqiL0+R+DfrUqErRxQPAfLGkFcFsRH+OafgCGk7AVw==

Steps to reproduce

Click the ‘dev’ button to switch to prod causes the Comp component not to render.

What is expected?

The dev and prod environments are consistent || Dev throw a warning

What is actually happening?

Why is there a difference between the dev and prod environments?

System Info

No response

Any additional comments?

No response

Metadata

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