Shopify / Shopify/hydrogen

Field 'discountApplications' doesn't exist on type 'Cart'

Open Beginner friendly
#4,016 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.1k
Forks
443
Avg merge
4d 19h
Merged PRs (30d)
24

Description

What is the location of your example repository?

Git hub private repository

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2026.4.5

What version of React Router 7 are you using?

7.16.0

Steps to Reproduce

Include discountApplications in CART_QUERY_FRAGMENT in app/lib
/fragments.ts.

Hydrogen doesn't support 2026-07 Graphql Version

Expected Behavior

discountApplications Should be supported

Actual Behavior

Field 'discountApplications' doesn't exist on type 'Cart'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in app/lib/fragments.ts and inspect CART_QUERY_FRAGMENT alongside the Hydrogen GraphQL schema/version configuration. Reproduce the type error with the 2026-07 API version, then verify that discountApplications is accepted on Cart and the relevant type-check or tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, react, typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.