Shopify / graphql-codegen

A codegen preset for generating TypeScript types from GraphQL queries without AST wrappers.
MIT License
12 stars 0 forks source link

Variable "hit" not found. #14

Open rickykissoon opened 1 month ago

rickykissoon commented 1 month ago

The following error shows up when running my hydrogen site locally:

[Codegen] Error: Variable "hit" not found. This might be a bug in @shopify/graphql-codegen, please report it. 

at normalizeOperation (node_modules/@shopify/graphql-codegen/dist/cjs/plugin.cjs:21:11)
at getDocumentRegistryChunk (node_modules/@shopify/graphql-codegen/dist/cjs/plugin.cjs:63:7)
at Object.plugin (node_modules/@shopify/graphql-codegen/dist/cjs/plugin.cjs:4:16)
at node_modules/@graphql-codegen/core/cjs/execute-plugin.js:35:54
at node_modules/@graphql-codegen/plugin-helpers/cjs/profiler.js:7:49

As far as I can tell there are no apparent issues. I will update this issue if I do find something.

frandiox commented 1 month ago

Can you submit a small reproduction of your issue?