Skip to content

TypeError: GqlSdks[client](...)[operation] is not a function #590

Description

@dcress

Environment

Nuxt 3
Local Development
Node v22.12.0
nuxt-graphql-client v0.2.43

Describe the bug

I'm setting up a new Nuxt env and some queries (but not all) are giving me this error:

TypeError: GqlSdks[client](...)[operation] is not a function

Screen Shot 2025-01-06 at 2 20 42 PM Screen Shot 2025-01-06 at 2 20 27 PM

Usage:
Screen Shot 2025-01-06 at 2 23 14 PM

Expected behaviour

I would expect the query to no return an error.

Reproduction

No response

Additional context

First off, thanks so much for the super cool project!


This could 100% be a user error, but I can't see anything that I'm clearly doing wrong and I've found no references to this error in the documentation.

I'm able to get some of my queries to work as expected, but not others. I wanted to see if y'all could make sense of the error and point me in the right direction?

Logs

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions