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

Priority of imported component and self-reference on v2.2.0 #5097

Closed
sxzz opened this issue Dec 29, 2024 · 2 comments · Fixed by #5102
Closed

Priority of imported component and self-reference on v2.2.0 #5097

sxzz opened this issue Dec 29, 2024 · 2 comments · Fixed by #5102
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug

Comments

@sxzz
Copy link
Member

sxzz commented Dec 29, 2024

Vue - Official extension or vue-tsc version

2.2.0

VSCode version

N/A

Vue version

3.5.13

TypeScript version

5.7.2

System Info

No response

package.json dependencies

No response

Steps to reproduce

// Foo.vue
<script setup lang="ts">
import Foo from './Other.vue'
</script>

<template>
  <Foo /> <!-- should not be self-referencing -->
</template>

What is expected?

Referencing to imported component

image

What is actually happening?

Self-referencing

Link to minimal reproduction

https://github.com/oxc-project/playground and upgrade vue-tsc to v2.2.0

Any additional comments?

Works well in v2.1.x, but failed on v2.2.0

@sxzz sxzz changed the title Priority of imported component and self-reference Priority of imported component and self-reference on v2.2.0 Dec 29, 2024
@KazariEX
Copy link
Collaborator

It seems that it was just missing a required prop title?

@sxzz
Copy link
Member Author

sxzz commented Dec 31, 2024

I prepared a minimal reproduction https://github.com/sxzz/vue-tsc-5097-issue. It'll be more clear

@KazariEX KazariEX added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug and removed pending triage labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug
Projects
None yet
2 participants