How do I find the cause of Cannot read properties of undefined in production?

The message names the property, such as reading date. A source map shows the line of that read and does not say why the value was undefined. Open the occurrence for the release you care about, because the issue page maps only the newest event. A status of 200 means the call finished and the field was absent.

Last updated 26 November 2026. By Paul Badarau.

Hugo, a fictional developer, ships a booking page for a ferry. Production reports TypeError: Cannot read properties of undefined (reading 'date').

  1. The message names the property. Here the code read date on a value that was undefined. When a source map is stored for that frame, the issue shows the original file and line of that read. The map does not say which earlier line left the value empty. Monitoring does not store the source text.
  2. Open the occurrence for the release you care about. Opening the issue maps only the newest stored event, and a map uploaded later still applies on that read. The culprit on the Errors list stays the minified frame.
  3. Read the fetch breadcrumb. Status 200 means the call finished, so the field was missing from a successful body. A breadcrumb with no status code is a request that never finished, which is a different fault.

When the stack has in-app frames, the same function groups different property names into one issue. Grouping uses the exception type and the innermost 8 in-app frames, as function and path, with no line numbers. The title becomes the newest event, so a later read of time can rename an issue that started on date. A read of null is the message Cannot read properties of null, and it joins this issue when those frames match. Open the occurrence for the release you shipped.

The product page for this is Monitoring.

Start your 14-day free trial