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

Nuxt 3.4/3.5 runtime config changes might break module #324

Closed just-maik closed 1 year ago

just-maik commented 1 year ago

Environment


Describe the bug

When casually using nuxt-graphql-client with Nuxt 3.4.1 it will error the following:

[nuxt] [runtimeConfig] You are trying to access a public runtime config value (graphql-client) directly from the top level. This currently works (for backward compatibility with Nuxt 2) but this compatibility layer will be removed in v3.5. Instead, you can update config['graphql-client'] to config.public['graphql-client'].

This is a deprecation in 3.4 that will be removed in 3.5 (RC)

Expected behaviour

As of Nuxt 3.5 it will be expected to access config.public

Reproduction

https://stackblitz.com/edit/github-nzhhxz?file=app.vue

Additional context

Still works fine in Nuxt 3.4

Logs

No response

just-maik commented 1 year ago

Sorry for all the renaming. I'm just not used to coming up with good Issue names...

Diizzayy commented 1 year ago

closing as this warning is no longer displayed and wasn't a particular issue for this module.