tigr
All errors
CriticalOpenTypeError

TypeError: Cannot read properties of undefined (reading 'id')

Events88
Users affected61
First seen27 days ago
Last seen27 days ago
tigr AI · Analysis

This fires when a shopper clicks "Add to basket" before the template object has finished loading, most often right after a hard refresh on /checkout.

  • The template fetch and the button's click handler are not sequenced, so a fast click reads .id off undefined.
  • More likely on slow connections or repeat refreshes, which is why it clusters right after a page load.
  • Not browser-specific: reproduces on both Chrome and Safari in the occurrences below.

Stack trace

TypeError: Cannot read properties of undefined (reading 'id')
    at addToBasket (checkout.tsx:142:18)
    at onClick (checkout.tsx:88:11)
    at HTMLButtonElement.callCallback (react-dom.production.min.js:100)

Where it happens

Path
/checkout
Browsers
Chrome 126, Safari 17

Recent occurrences

  • u_2291/checkout · Chrome 126 · Desktop
  • u_1187/checkout · Safari 17 · Desktop
  • u_3410/checkout · Chrome 126 · Mobile