Closed AndreyYolkin closed 2 years ago
Hmm, so by quick look it seems that client-side it's working fine. Problem is with server-side rendering.
When you are navigating from another page, it's rendered on client-side. When you navigate directly or refresh the page it's rendered on server-side. In your example server-side fails. Not sure why though.
Reproduction
https://github.com/AndreyYolkin/nuxt-bridge-vue-query
https://stackblitz.com/github/AndreyYolkin/nuxt-bridge-vue-query?file=pages%2FvueQuery.vue (plugin is loading into application only after editing nuxt.config)
Description
In application built with Nuxt 2 bridge I use the same technique as in Nuxt 3 example. And everything is working well until I refresh the page. Then vue-query is falling down with message stated in issue name.
Extras
I think I need to tag @danielroe, because I cannot reproduce this in Nuxt 3. May be it should be copied into @nuxt/bridge repo as well.
Logs
Environment
Windows_NT
v16.14.2
2.16.0-27718583.54e852f
npm@8.16.0
vite
head
,plugins
,bridge
,serverHandlers
,devServerHandlers
,buildModules
-
()
,@nuxt/bridge@3.0.0-27719140.5e5fa50