-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
defineProps is not compiled in a nested scope in SFC script setup #4469
Comments
Maybe you are looking for this: #3682 |
@posva That PR does seem like it would be a possible solution for what I'm looking for. But since that's using the |
Version
3.2.6
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Call defineProps in a script setup SFC file in a scope that is not at the top level.
What is expected?
defineProps should be compiled to __props
What is actually happening?
defineProps is called at runtime causing a ReferenceError
Implementation like the repo example is useful when defining a component with generic props
The text was updated successfully, but these errors were encountered: