2 people reported

All time, since Mar 12, 2024.

Storefront GraphQL types not applied

“Generating types with the provided npm script doesn't seem to add any typings/validation despite storefront.types.d.ts file getting generated.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/shopify/issues/7160/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Generated Storefront GraphQL types not applied to query responses. The storefront.generated.d.ts file is generated correctly, but storefront.graphql returns type any and variables go unvalidated; Admin types work.

Is this your bug?

File my report
Where
api-codegen-preset
Versions
2.6.1
Platforms
Linux, macOS
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Codegen rejects Admin API fields4 people
  2. Codegen imports invalid admin types path2 people

Original reports2, newest first

  1. [api-codegen] Project isn't "consuming" output from storefront generated graphql typesOn GitHubshopify-app-js #1901
  2. Storefront GraphQL types do not provide validation despite storefront.generated.d.ts file being generatedOn GitHubshopify-app-js #694

Do you work on Shopify?

Claim its RAP Sheet to see what your users report and answer them in one place.