Sentry error: Cannot read properties of null (reading 'sidebar')

Description

I am getting alerts on new errors reported as Cannot read properties of null (reading 'sidebar') that started being reported around Nov 17th.

  • They don't seem to correlate to one specific page (I got alerted on grouprunner pages).
  • They related to sidebar.* statements and even though we don't have sourcemaps enabled I suspect this is related to the MR below.
  • This error reports null is not an object (evaluating 't.namespace.sidebar')

Example error description:

image

Query to display errors:

https://new-sentry.gitlab.net/organizations/gitlab/issues/?environment=gprd&project=4&query=Cannot+read+properties+of+null+%28reading+%27sidebar%27%29&referrer=issue-list&sort=freq&statsPeriod=14d

Related MR

The following discussion from !171454 (merged) should be addressed:

  • @mrincon started a discussion:

    👋 I am getting alerted on new errors in Sentry that correlate to this change. I'll open a new issue.

Edited by Miguel Rincon