piglovesyou / graphql-let

A webpack loader / babel-plugin / babel-plugin-macros / CLI / generated file manager of GraphQL code generator.
Apache License 2.0
453 stars 34 forks source link

No types getting generated #654

Open hendrik244 opened 8 months ago

hendrik244 commented 8 months ago

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