We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>= 3.3.0.alpha.7
https://sfc.vuejs.org/#eNqNULtuwzAM/BVCSx6wrV11AnToL3SpOrg24yqwHhApdwj875WSDO4DRReKJ4p3uruIxxCaOaFQoqU+msBAyCnA1LnxoAWTFkftAOS+1N47YkBrGA4w4Mk4fMqA2kuZAmxRwSaFoWNU1g84PXdTwk0FczkVEEfjxp2C2ZuhrCzH7e6hNHtZ6n80fuFX8PJF4HVF3cqbr+wiA0Ybprx9Q3IFRSWMDT5ybbvQnMm7nMlVUt8HOQoF909okUMrWIt35kBKSjr1JckzNT6OMndNTI6NxQbJ1m/RfxDGTKxFteKQ+XLGWEd0A0aMf3F+e/qD9+pau0UsnwwOoOY=
<script setup lang="ts"> const emit = defineEmits<{ 'update:modelValue': [value: string] }>(); </script>
Should compile component without error.
Error: [@vue/compiler-sfc] defineEmits() type cannot use computed keys. App.vue 8 | 9 | const emit = defineEmits<{ 10 | 'update:modelValue': [value: string] | ^^^^^^^^^^^^^^^^^^^ 11 | }>(); 12 | </script>
It seems bug was introduced in commit ef73ea5
The text was updated successfully, but these errors were encountered:
StringLiteral
defineEmit
fix(compiler-sfc): accept StringLiteral node in defineEmit tuple …
3ccbea0
…syntax (#8041) close #8040
1c454ea
…syntax (vuejs#8041) close vuejs#8040
Successfully merging a pull request may close this issue.
Vue version
>= 3.3.0.alpha.7
Link to minimal reproduction
https://sfc.vuejs.org/#eNqNULtuwzAM/BVCSx6wrV11AnToL3SpOrg24yqwHhApdwj875WSDO4DRReKJ4p3uruIxxCaOaFQoqU+msBAyCnA1LnxoAWTFkftAOS+1N47YkBrGA4w4Mk4fMqA2kuZAmxRwSaFoWNU1g84PXdTwk0FczkVEEfjxp2C2ZuhrCzH7e6hNHtZ6n80fuFX8PJF4HVF3cqbr+wiA0Ybprx9Q3IFRSWMDT5ybbvQnMm7nMlVUt8HOQoF909okUMrWIt35kBKSjr1JckzNT6OMndNTI6NxQbJ1m/RfxDGTKxFteKQ+XLGWEd0A0aMf3F+e/qD9+pau0UsnwwOoOY=
Steps to reproduce
What is expected?
Should compile component without error.
What is actually happening?
It seems bug was introduced in commit ef73ea5
The text was updated successfully, but these errors were encountered: