Skip to content

DevTools crash somewhere in timelineEventAdded #728

@jods4

Description

@jods4

After I activate the Vue Devtools by opening the Vue tab once, I sometimes get JS crashes because Devtools code tries to dereference a null object.

Here's what I so far, hopefully you'll be able to take an educated guess on what the condition that triggers the bug is.

From my experience so far, it could be linked to @intlify/unplugin-vue-i18n but I am not 100% sure. Maybe just a coincidence.

The problem occurs in a hook for timelineEventAdded. Here's the call stack (obfuscated though).
image

Here's the crashing code, with a little bit of context so hopefully you can locate the un-minified source:
image

The problem is that e is a plain object. You can see its fields in the screenshot above, but it has no constructor. So e.constructor.name fails with Cannot read properties of undefined (reading: 'name').

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions