Skip to content

No types getting generated #654

@hendrik244

Description

@hendrik244

I'm currently trying to generate typesscript types via CLI, but no type files a getting created.

My queries are stored in .ts files and look like this for example:

image

My .graphql-let.yml looks like this:

schema:
  - https://XXXXXX-dev.myshopify.com/api/2023-01/graphql.json:
      headers:
        X-Shopify-Storefront-Access-Token: XXXXXXXXXXXXX
documents:
  - 'src/lib/shopify/queries/*.ts*'
  - 'src/lib/shopify/mutations/*.ts*'
plugins:
  - typescript-operations
cacheDir: .cache/graphql-let

The cache file "types.tsx" is getting created.

Following packages are installed:

"graphql-let": "^0.18.6",
"graphql": "^16.8.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations":

What am I doing wrong?
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions