Diizzayy/nuxt-graphql-client

Is this module currently working properly?

Opened this issue · 2 comments

Environment

  • Operating System: Windows_NT
  • Node Version: v18.17.1
  • Nuxt Version: 3.7.1
  • CLI Version: 3.8.1
  • Nitro Version: 2.6.3
  • Package Manager: pnpm@8.7.4
  • Builder: -
  • User Config: devtools, typescript, runtimeConfig, modules
  • Runtime Modules: nuxt-graphql-server@2.0.1, nuxt-graphql-client@0.2.30
  • Build Modules: -

Describe the bug

螢幕擷取畫面 2023-09-11 033303
螢幕擷取畫面 2023-09-11 033404

Can this module be used with nuxt-graphql-server? An incomprehensible error occurred...

I also had the same error when I tried to enable the author's nuxt-graphql-client-demo project without adding any modules.

Expected behaviour

Perform operations such as query or mutation normally

Reproduction

https://stackblitz.com/edit/github-1zthlw

Additional context

@nuxtjs/apollo works fine, but I really don’t want to go back to using this bloated module.

Logs

No response

螢幕擷取畫面 2023-09-12 000059

I found that turning the codegen option off worked just fine, but I lost the benefits of typing.

And I think the module seems to fetch the server before it has been successfully created inside nuxt, resulting in getting an incorrect response.

@Diizzayy Is this a limitation of the module itself? It would be great to have access to nitro server inside nuxt! graphql can be used on both the front and back ends.

related #23