react icon indicating copy to clipboard operation
react copied to clipboard

[DevTools Bug] Cannot add node "1" because a node with that id is already in the Store.

Open baqarmangrani opened this issue 3 years ago • 2 comments

Website or app

local personal app

Repro steps

I was using Global context

How often does this bug happen?

Every time

DevTools package (automated)

react-devtools-extensions

DevTools version (automated)

4.25.0-336ac8ceb

Error message (automated)

Cannot add node "1" because a node with that id is already in the Store.

Error call stack (automated)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26596:41
    at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24626:22)
    at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24795:14
    at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:54959:39)

Error component stack (automated)

No response

GitHub query string (automated)

https://api.github.com/search/issues?q=Cannot add node  because a node with that id is already in the Store. in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react

baqarmangrani avatar Oct 16 '22 08:10 baqarmangrani

I also got this error. The code that I used to produce this error is here. (Accompanying HTML and CSS files are available too, just change the file name in your browser's address bar to index.html or main.css.)

twisted-nematic57 avatar Oct 17 '22 09:10 twisted-nematic57

Reinstalling the extension fixed the issue for me

hasanbisha avatar Oct 17 '22 11:10 hasanbisha

Reopening chrome DevTools fixed it for me

JuraJuki avatar Dec 01 '22 10:12 JuraJuki

One possible cause of this issue is when multiple react devtool instances are running on the same page. Restarting the devtools (by close and open chrome devtools, or re-install the extension) often helps. If this issue still persists please let me know! It would be very helpful if someone can provide a way to reproduce.

mondaychen avatar Dec 07 '22 21:12 mondaychen