Diizzayy / nuxt-graphql-client

⚡️ Minimal GraphQL Client + Code Generation for Nuxt3
https://nuxt-graphql-client.web.app
MIT License
366 stars 44 forks source link

ReferenceError: refreshNuxtData is not defined #349

Closed linhmtran168 closed 1 year ago

linhmtran168 commented 1 year ago

Environment

------------------------------
- Operating System: Darwin
- Node Version:     v18.15.0
- Nuxt Version:     3.6.5
- Nitro Version:    2.5.2
- Package Manager:  npm@9.5.0
- Builder:          vite
- User Config:      srcDir, app, modules, pinia, typescript, runtimeConfig, sourcemap, vite, css, components, devtools
- Runtime Modules:  nuxt-vitest@0.10.2, nuxt-graphql-client@0.2.29, @nuxtjs/tailwindcss@6.8.0, @pinia/nuxt@0.4.11
- Build Modules:    -
------------------------------

Describe the bug

After upgrading to version 0.2.29 of nuxt-graphql-client, the following error happens when using useGqlToken:

nuxt.js:94  [nuxt] error caught during app initialization ReferenceError: refreshNuxtData is not defined
    at useGqlToken (index.mjs?v=75951b2c:73:9)

Downgrading to 0.2.27 solves the problem.

Expected behaviour

The error shouldn't happen and useGqlToken works as expected

Reproduction

No response

Additional context

No response

Logs

No response