vuejs / devtools

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools.vuejs.org/
MIT License
1.7k stars 121 forks source link

TypeError: Cannot read properties on undefined #688

Closed se-bright closed 1 week ago

se-bright commented 2 weeks ago

Vue devtools 7.6.3

When vite hot reloads a page, using the 'select component on page' causes the following errors to occur. This can be fixed by reloading the page.

This was not the case before on 6.x.x

We mainly use:

If you need additional info on packages, the issue or anything else, feel free to ask.

image

image

alexzhang1030 commented 2 weeks ago

Hi, a reproduction is appreciated

Robind-ev commented 2 weeks ago

Hi, a reproduction is appreciated

Il look into it when i have some spare time! (Accidentally posted with the wrong account :melting_face: )

twisterniq commented 1 week ago

It also somehow happened for me. I don't know how to reproduce it, I just saw it in the console after a while.

Screenshots ![image](https://github.com/user-attachments/assets/305d7758-6d49-403a-92bd-827bb001bcec) ![image](https://github.com/user-attachments/assets/a04aba7c-1268-4596-a74e-cad126f36311)

It seems like the error leads here:

https://github.com/vuejs/devtools/blob/0cf7f091e20a4363f59824c101611e5c9fab4d25/packages/devtools-kit/src/core/component/state/process.ts#L66

alexzhang1030 commented 1 week ago

It should not happen in most general cases, so we need a sample to avoid this error. Can anyone help us? Thank you