Closed joonseolee closed 2 years ago
in vue 2.7, you shouldn't use @vue/composition-api
.
@xiaoxiangmoe
I tried to downgrade vue version.
But still not working 😢
Can you give me a minimal reproductive repo?
It seems that you still use vue 2.7.
please change "vue": "^2.6.0"
to "vue": "~2.6.0"
@xiaoxiangmoe
aha! it works but script setup tag doesn't work.
so I referenced the library https://github.com/antfu/unplugin-vue2-script-setup
.
Then both types of coding work properly
Thank you!! 👍
unplugin-vue2-script-setup is only support vue 2.6, also.
like this issue #918 , it's like calling twice loading those things. then how can I solve this problem? there is two errors each setup function style. thank you for reading this comment.
you can see the versions I used