Skip to content

Vue crashes when function name is similar to imported component #11437

@patchthecode

Description

@patchthecode

Vue version

3.3.4

Link to minimal reproduction

no link

Steps to reproduce

its easy to reproduce

import ViewComponent from '/src/components/ViewComponent.vue' // can be empty file with just a div

async function viewComponent(index) { // Similar name. but v is small case

}

...
<view-component  /> 

What is expected?

it should work

What is actually happening?

crash

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