2 people reported

All time, since Jul 18, 2025.

Function GraphQL type generation fails

“Cannot convert undefined or null to object”

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/6523/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

Function GraphQL type generation fails with null object error. Running npm exec -- graphql-code-generator --config package.json fails at "Parse configuration" when building or generating TypeScript Function extensions.

Is this your bug?

File my report
Where
Shopify Functions
Error text
Cannot convert undefined or null to object
Versions
2.0.0
Platforms
macOS
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Codegen types can't resolve module2 people
  2. Functions fail with unknown imports2 people

Original reports2, newest first

  1. Function build fails with 'Cannot convert undefined or null to object' - npm exec downloads wrong graphql-code-generator versionOn GitHubcli #6745
  2. shopify app generate extension with a Typescript flavor fails on the graphql-code-generator commandOn GitHubcli #6132

Do you work on Shopify?

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