unplugin / unplugin-vue2-script-setup

💡 Bring `<script setup>` to Vue 2.
MIT License
603 stars 39 forks source link

[Nuxt 2 + Typescript] Reactive values are not unwrapped in component's template #114

Closed DamianGlowala closed 2 years ago

DamianGlowala commented 2 years ago

I have installed the module with Nuxt 2 and transformed the whole project to use the new syntax (<script setup lang="ts">).

Is it the intention that all ref variables declared within the script block are intentionally left unwrapped in the component's template (that is, they can be accessed via .value)? I think either it is a misconfiguration on my side or a possible bug. I'll provide more details once I hear back on whether this is an intended behaviour.

As per below docs snippet, could it be a discrepancy between Vue 2 and Vue 3?

image

DamianGlowala commented 2 years ago

Closing - either seemed to be a temporary issue or impression caused by other accompanying errors. Ref values are correctly unwrapped.