`hydrogen gql check` fails on Windows: absolute schema path is parsed as a URL by gql.tada
Maintainers usually reply within 3 days
@Roshan931 is already working on this.
Since Nov 11, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- graphql, node.js, typescript
- Domain
- cli, developer-experience
Research direction
Start with packages/hydrogen/src/cli/gql.ts, where the issue says the CLI builds the temporary gql.tada config, and trace how it determines the tsconfig path and schema paths. Reproduce the failure on Windows with npx hydrogen gql check; compare the absolute schema path with the working relative path described in the issue. Done means the check validates the bundled schemas on Windows, as it does on Linux and macOS.
Written by the indexing model from the issue text.
Description
Environment
- Windows 11, Node 26,
@shopify/hydrogen2026.10.2 (2026.10.3 andmainhave the same code) gql.tada1.9.2,@gql.tada/internal1.0.9
Steps
- Create or migrate a Hydrogen project on Windows with
@shopify/hydrogen2026.10.x. - Run
npx hydrogen gql check.
Actual
⚠ Unexpected Error
Could not check files
┗ CombinedError: [Network] fetch failed
The CLI writes a temporary tsconfig and runs gql.tada check on it.
Expected: the check validates the gql() documents against the bundled schemas, as on Linux and macOS.
Cause: packages/hydrogen/src/cli/gql.ts builds the plugin config with createGraphQLPluginConfig(join(packageRoot, "dist")), so schema is an absolute path such as C:\...\storefront.schema.json. gql.tada's getURLConfig runs new URL(schema) before deciding the schema is a file. On Windows that call succeeds (new URL("C:\dev\x\storefront.schema.json").protocol === "c:"), so the schema is loaded as a remote URL and the fetch fails.
Verified workaround / possible fix: with the same tsconfig but schema set to a path relative to the tsconfig (./node_modules/@shopify/hydrogen/dist/storefront.schema.json), gql.tada check prints "No problems found". Changing only those paths to absolute reproduces the error. So the CLI could pass path.relative(dirname(tsconfigPath), …) with forward slashes; new URL throws on that and gql.tada falls back to reading the file.
Impact: hydrogen gql check, which the Hydrogen skills chain into typecheck, cannot run on Windows. We validate locally with a hand-made tsconfig. That check caught a real error: $discountCodes is [String!]! in this API version.
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 466
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 59
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/hydrogen
-
ShopifyPrivacyBanner.showBanner()/showPreferences() types declare zero args, but headless stores require storefrontAccessToken (and domains) at runtimePossibly taken @minwookshin claimed this 53 days ago. Openinactive
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Shopify/hydrogen#4069 · 1 comment ·
Maintainers usually reply within 3 days
-
Remix 3: running Hydrogen 2026-10's core without a bindingPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 12/100
Maintainers usually reply within 3 days
-
`runWithCache` starts a background refresh for every stale hit, where 2025.7 started one per keyPossibly taken @debojyoti10CC claimed this 6 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 3 days
-
`shopify:page:view` fires when `history.replaceState` changes only the query, as a variant selection doesPossibly taken @Peerapatfc claimed this 6 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 53/100
Maintainers usually reply within 3 days
-
`gql check` and the TS plugin still fail on Windows when schema paths are absolutePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
Shopify/hydrogen#4371 · 2 comments ·
Maintainers usually reply within 3 days
All issues in Shopify/hydrogen
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
prometheus/docs#3198 ·
Maintainers usually reply within 3 days
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
suitenumerique/hub#176 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day