Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A vue SFC with the same filename as another SFC is recursively referenced inside the other component (name doesn't matter) #3314

Closed
Philipp-M opened this issue Feb 26, 2021 · 2 comments

Comments

@Philipp-M
Copy link

Version

3.0.6

Reproduction link

https://codesandbox.io/s/heuristic-morning-dzo0g

Steps to reproduce

This file should render the other SFC
https://codesandbox.io/s/heuristic-morning-dzo0g?file=/src/components/HelloWorld.vue

which is here:
https://codesandbox.io/s/heuristic-morning-dzo0g?file=/src/components/subdir/HelloWorld.vue

And the App.vue uses a different name (HelloWorldView) to render the first component.

What is expected?

Being able to have SFCs with the same filename (which might have a different name when included as component)

What is actually happening?

vue fails to differentiate these SFCs and creates an endless recursion.


This issue came up after an update from vue 3.0.2 to 3.0.6

@edison1105
Copy link
Member

edison1105 commented Feb 26, 2021

same as #2821 #2827

@posva
Copy link
Member

posva commented Feb 26, 2021

Duplicate of #2827

@posva posva marked this as a duplicate of #2827 Feb 26, 2021
@posva posva closed this as completed Feb 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants