swrv icon indicating copy to clipboard operation
swrv copied to clipboard

cant get it to work on nuxt-bridge

Open csechuan opened this issue 3 years ago • 0 comments

Reproduction

https://github.com/csechuan/test-nuxt2/blob/main/pages/index.vue

Description

Error : Could not get current instance, check to make sure that useSwrv is declared in the top level of the setup function

I have tried on script setup() and script setup. Neither works. Check the code and run on the script, I can get the instance indeed with the composition-api. So i am not sure what's wrong.

csechuan avatar Feb 12 '22 09:02 csechuan