`hydrogen gql check` fails on Windows: absolute schema path is parsed as a URL by gql.tada
I maintainer di solito rispondono entro 3 giorni
@Roshan931 ci sta già lavorando.
Dal 11/11/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- graphql, node.js, typescript
- Ambito
- cli, developer-experience
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 2.2k
- Fork
- 466
- Merge medio
- 3g 18h
- PR unite (30g)
- 59
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Shopify/hydrogen
-
ShopifyPrivacyBanner.showBanner()/showPreferences() types declare zero args, but headless stores require storefrontAccessToken (and domains) at runtimeForse già presa @minwookshin l’ha presa 53 giorni fa. Apertainactive
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Shopify/hydrogen#4069 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Remix 3: running Hydrogen 2026-10's core without a bindingForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
I maintainer di solito rispondono entro 3 giorni
-
`runWithCache` starts a background refresh for every stale hit, where 2025.7 started one per keyForse già presa @debojyoti10CC l’ha presa 6 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 3 giorni
-
`shopify:page:view` fires when `history.replaceState` changes only the query, as a variant selection doesForse già presa @Peerapatfc l’ha presa 6 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 53/100
I maintainer di solito rispondono entro 3 giorni
-
`gql check` and the TS plugin still fail on Windows when schema paths are absoluteForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Shopify/hydrogen#4371 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di Shopify/hydrogen
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 66/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
prometheus/docs#3198 ·
I maintainer di solito rispondono entro 3 giorni
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier captureForse già presa @jianyx1 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
volcengine/OpenViking#8354 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
I maintainer di solito rispondono entro 1 giorno
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
suitenumerique/hub#176 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno