Last updated 26 November 2026. By Paul Badarau.
Kenji, a fictional developer, ships a gallery. A few visitors report ReferenceError: DeskLight is not defined. DeskLight is a fictional global the page expects.
- The name in the message was used and has no binding. Open the event and read Browser. One old browser, with the rest of the traffic quiet, means that browser has no such global.
ResizeObserver is not definedis that case. It is a different message from the loop notice the SDK drops by default,ResizeObserver loop completed with undelivered notifications. - The same error on current browsers means the binding is missing from the page. An inline script placed above a file marked
defercan run before that file creates the name. Two files can also split a name so the one that reads it never loaded the one that creates it. Create the name first, or ship it in the file that reads it. - Safari words a missing binding as
Can't find variable: DeskLight. A search foris not definedmisses that wording. The same search missesCannot access 'DeskLight' before initialization, which is a ReferenceError for a name that exists later in the same scope.
When the stack has in-app frames, grouping uses the exception type and those frames, not the missing name. A later missing name in the same function joins the issue and can change the title. Open the occurrence to see which name that visitor hit.
The product page for this is Monitoring.