nuxt-graphql-client icon indicating copy to clipboard operation
nuxt-graphql-client copied to clipboard

Is this module currently working properly?

Open awdr74100 opened this issue 2 years ago • 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: [email protected]
  • Builder: -
  • User Config: devtools, typescript, runtimeConfig, modules
  • Runtime Modules: [email protected], [email protected]
  • 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

awdr74100 avatar Sep 10 '23 20:09 awdr74100

螢幕擷取畫面 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.

awdr74100 avatar Sep 11 '23 16:09 awdr74100

related #23

ehsanonline avatar Nov 09 '23 19:11 ehsanonline