You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce the bug from scratch (repro already has this covered):
Import an object/enum from another file.
Try to use their keys as a source of dynamic attribute name or slot name in <script setup> component. Note that this enum/object is not supposed to be used anywhere else in the component except the mentioned place.
Observe an error since our object/enum is not exposed to the template (you can also check the generated code and take a look at the final __returned__ variable).
What is expected?
This object/enum should be properly exposed to the template in the final __returned__ variable since it's already being used in the template.
What is actually happening?
An error like Cannot read properties of undefined (reading 'someProperty') because the variable we're trying to get access to is not exposed.
Vue version
3.3.4
Link to minimal reproduction
https://play.vuejs.org/#__DEV__eNqFUctuwjAQ/JWVe+BCbAluaahAfEAvvTU9hGSB0Pgh26GVUP69ayfQABW9RNqZ3ZnJ+MRWxvBjiyxlmSttbTw49K2BplC7Rc68y9lLrmpptPVwAotb6GBrtYQJnU1G1Bs6P43f183hssQFqlZy735X11qaCxuGEIDoTPQJyI8Gj9I0hUeaALJ48/Qe1Pl6XzfVR8QB4hBXotTdNmXhK6X9Hu35ZBivjjJx8WNTdg71TyuPArtGe1CFRFovY0YG4p4qhiw9eZ1iKI5C4HcsLgCxYDgFofjrsIBJ1J9MAzb8W0AH6YB3IeAgUmpFAudnWoyk0r+UCBwLPeeKkvUPmcjC8IPTihJGlXwgqJ201w0Y9RjmnO29Ny4VolXmc8dLLcWSOGFb5WuJSaXlcs5nfDYXVe38GOfoZLKx+suhJcecxYSDuCDwiDaxqCq0ocsHZje7V4Y33J1p8KQmO9b9AN3rF8I=
Steps to reproduce
Steps to reproduce the bug from scratch (repro already has this covered):
__returned__
variable).What is expected?
This object/enum should be properly exposed to the template in the final
__returned__
variable since it's already being used in the template.What is actually happening?
An error like
Cannot read properties of undefined (reading 'someProperty')
because the variable we're trying to get access to is not exposed.System Info
Any additional comments?
This is a regression from v3.2.0-beta.4.
The text was updated successfully, but these errors were encountered: