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

Types imported in the <script setup> should not be used as a variable in template #4353

Closed
nekolab opened this issue May 8, 2024 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@nekolab
Copy link

nekolab commented May 8, 2024

Playground repro:
https://play.vuejs.org/#eNp9kU9PwzAMxb+KyaUgjU0DTlM3aaBJwGEgmOCSS9V6XUeaRIk7hqp+d5xM+yOEdovfe7F/Tloxtba/aVCMROpzV1kCj9RYUJkuxwn5ZCJ1VVvjCFpwuOwB/ViEV2fsIhw6WDpTQ8I9kkMyRlr4mJsCQ8r/iUmdG+0Jal/COHS9TB5RKQOfxqniIrmSOh3scHg8F4S1VRkhVwDpajhp23i569IBV1GttG0INtc1D1VjKdiXAkZFRtk1DVnYM/enR/2G9SMm6wNulg5O5omeIM+4y6rsr73R/FJtmCdFbmpbKXQvlipeR4oRRCd4GW/z/Rw1cg329nq+wvzrH33tt0ELkOjRbVCKg0eZK5F29ux9jls+H0zetlGcPmO+oTeqCYy72H2jC8Y+yUXap/h3lS4XfrYl1H6/VAANyS7mpeA/fDiz+hH3tn8X70ndie4XSPnNng==

What's wrong

As we can see in the reproduction:
:data-t1="PropType.A" should be wrong but the typescript is not able to detect it
:data-t2="VNodeTypes" is wrong and get detected

What we want to see:

tides under the PropType.A too

@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels May 8, 2024
johnsoncodehk added a commit that referenced this issue May 14, 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
Projects
None yet
Development

No branches or pull requests

2 participants