Skip to content

handler_element undefined #16043

Open
Open
@tvthatsme

Description

@tvthatsme

Describe the bug

Seeing error logs for Uncaught TypeError: Cannot read properties of undefined (reading 'ownerDocument') because it looks like handle_event_propagation is being called while the handler_element is undefined.

The code in question is here https://github.com/sveltejs/svelte/blob/main/packages/svelte/src/internal/client/dom/elements/events.js#L151

This is somehow connected to the user having the jam.dev Chrome extension enabled but I am not sure how the two are intersecting.

Image

Reproduction

So far not able to catch this in a REPL.

Logs

Uncaught TypeError: Cannot read properties of undefined (reading 'ownerDocument')
    at handle_event_propagation (events.js:144:61)
    at HTMLDocument.e (host-additional-hooks.js:2:114630)

System Info

System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 132.94 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.7.0 - /opt/homebrew/bin/node
    npm: 11.2.0 - /opt/homebrew/bin/npm
    pnpm: 10.11.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 136.0.7103.114
    Safari: 18.5
  npmPackages:
    svelte: ^5.33.7 => 5.32.1

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions