facebook / react

The library for web and native user interfaces.
https://react.dev
MIT License
228.6k stars 46.8k forks source link

[DevTools Bug] Cannot add child "1161" to parent "942" because parent node was not found in the Store. #26465

Open bhanuUdai opened 1 year ago

bhanuUdai commented 1 year ago

Website or app

chrome on local host

Repro steps

it happen with every component that i mount

Screenshot 2023-03-23 at 1 04 00 PM

How often does this bug happen?

Every time

DevTools package (automated)

react-devtools-extensions

DevTools version (automated)

4.27.2-1a88fbb67

Error message (automated)

Cannot add child "1161" to parent "942" because parent node was not found in the Store.

Error call stack (automated)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27939:43
    at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25892:22)
    at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26061:14
    at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56323:39)

Error component stack (automated)

No response

GitHub query string (automated)

https://api.github.com/search/issues?q=Cannot add child  to parent  because parent node was not found in the Store. in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
hoxyq commented 1 year ago

@bhanuUdai

Can you please provide an example of the code that reproduces the problem? Some useful tips on this: https://stackoverflow.com/help/mcve

bhanuUdai commented 1 year ago

this error is coming with every react application i try to run on browser

On Mon, Apr 3, 2023 at 4:22 PM Ruslan Lesiutin @.***> wrote:

@bhanuUdai https://github.com/bhanuUdai

Can you please provide an example of the code that reproduces the problem? Some useful tips on this: https://stackoverflow.com/help/mcve

— Reply to this email directly, view it on GitHub https://github.com/facebook/react/issues/26465#issuecomment-1494099896, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2JXKJ6EIX5LUQWLKZKPCALW7KTW7ANCNFSM6AAAAAAWE2AJRY . You are receiving this because you were mentioned.Message ID: @.***>

80avin-sw commented 1 year ago

Getting same along with Invalid renderer id "1". I regularly use React devtools but noticed this only today (which means it might've appeared within last ~1 week). Another particularly different thing which happens is that Devtools Element tree becomes kind-of disconnected from real VDOM. i.e. hovering doesn't highlight corresponding element in window, neither I can inspect new elements.

This used to happen previously also (since ~3-4 months), and I could work around it by Pressing Option + R (reload devtools). Now, when I try to reload devtools in such situation, I get warning Invalid renderer id "1" and devtools goes into above mentioned state.

And, service worker logs this as error message

{
    "message": "Duplicate script ID 'hook'"
}
shamilium commented 1 year ago

I have same issue.

haohuaZhang commented 1 year ago

I have same issue.

K-E-L commented 1 year ago

still running into the same problem as of september

shseok commented 7 months ago

I have same issue. (2024.03.27)