The following production error is occurring at a rate of 1,625 errors in the last 7 days.
According to TypeScript, event.target can be null so this likely needs a null check in handleDOMEventIfEligible inside src/index.js
https://logstash.wikimedia.org/goto/e510b1091cd4fb0841f978ab70d2c861
Summary of events
- We attempted to fix the bug (best guess)
- It wasn't fixed so we added some logging to understand the bug
- Additional logging showed us that all errors were in the form "T340081: Unexpected DOM element undefined with nodeType undefined" telling us that the DOM element didn't have an nodeType or tagName
- Since all DOM elements should have nodeType this suggests the client was non-standard. Since all errors came from Amazon.com we could conclude that this bug didn't impact real users and Jon declined the ticket.