Diizzayy / nuxt-graphql-client

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

Is this module currently working properly? #369

Open awdr74100 opened 10 months ago

awdr74100 commented 10 months ago

Environment

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 commented 10 months ago

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

ehsanonline commented 8 months ago

related #23