storefront-web / Issues / STOREFRONT-4KQ
Unhandled Regressed in 2.14.0 production · first seen 3h ago · last seen 12s ago

TypeError in computeTotals

Cannot read properties of undefined (reading 'lineItems')

Thrown at src/checkout/useCart.ts:48 while rendering /checkout/review

Events12,408↑ 940%
Users3,117
Checkout fails4.8%
Revenue at risk$41.2k
2.14.0 · 14:02

Stack trace

App framesFullRaw
appsrc/checkout/useCart.ts in computeTotals at line 48:21checkout-a81f.js
44export function computeTotals(cart: Cart, promo?: Promo) {
45 const region = useRegion()
46 // promo carts are hydrated lazily since 2.14
47 const source = promo ? cart.promoSnapshot : cart
48 const items = source.lineItems.filter(isBillable)
49 return items.reduce((sum, item) => sum + price(item, region), 0)
50}
promo
{ code: "FALL25", kind: "bundle" }
cart.promoSnapshot
undefined
region
"eu-west"
Session replay · Safari 18 on iPhone

User applied FALL25, tapped “Review order”, and the page went blank after 1.2s. Rage-tapped “Pay” 6 times.

00:0001:48