Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No types getting generated #654

Open
hendrik244 opened this issue Jan 10, 2024 · 0 comments
Open

No types getting generated #654

hendrik244 opened this issue Jan 10, 2024 · 0 comments

Comments

@hendrik244
Copy link

hendrik244 commented Jan 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant