Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tungquantedge opened this issue Nov 20, 2023 · 14 comments
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug

Comments

@Tungquantedge
Copy link

Website or app

https://editor.wix.com/html/editor/web/renderer/edit/1e14587f-a72d-4b5f-866d-f00b1ede1959?metaSiteId=e0eb6e2b-eb02-4e61-8c27-b28c38ce72f9

Repro steps

Just open web and error show

How often does this bug happen?

Every time

DevTools package (automated)

react-devtools-extensions

DevTools version (automated)

4.28.5-ef8a840bd

Error message (automated)

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

Error call stack (automated)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:1:1125187
    at A.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:1:1095954)
    at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:1:1097642
    at bridgeListener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:1:1495532)

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
@Tungquantedge Tungquantedge added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Nov 20, 2023
@hoxyq
Copy link
Contributor

hoxyq commented Nov 23, 2023

Thanks for reporting this. Is there a minimal reproducible example, by any chance? Maybe you can put it into some sandbox, so I can try to debug it?

@angussbj
Copy link

I have the same problem, and sorry I haven't got a minimal reproducible example. I have however noticed that if you dismiss the error, everything works fine, except another similar error comes up every few seconds and covers the entire screen and you have to dismiss it again to see what you were looking at.

Is there a setting or configuration that I could use to auto-dismiss errors, or stop them covering the whole screen?

@TroyDL
Copy link

TroyDL commented Nov 27, 2023

Seeing the same thing. The node value changes with every new one that pops up and they pop up frequently enough to make it unusable, despite seeing profiler results underneath them.

@sirajalam049
Copy link

Same issue

@brandones
Copy link

Same issue. Occurring in a very complex micro-frontend app. Hope someone with a simpler set-up gets this so a repro is possible.

@EsserMishelle
Copy link

I defaulted to Chrome and the bug is solved.

@Ha-limLee
Copy link

I defaulted to Chrome and the bug is solved.

It solved the problem. Thanks!

@vegerot
Copy link

vegerot commented Jan 12, 2024

idk what information I should give
image

note: I'm developing a new feature for React DevTools so it might be a bug in my fork

@katiearriagam
Copy link

@hoxyq - I'm still seeing this on my dev tools when running on Edge (Chromium-based). Are there any updates?

@KaiVandivier
Copy link

For me, this was happening when React Devtools was active in both the browser extension and the standalone client -- closing one fixed the other 🥳

If you're going to use the standalone client, you can disable the browser extension entirely or make sure that the dev tools aren't open. If the dev tools have been opened on your app's tab, you'll need to close them and reload the page with them closed to make sure the browser extension isn't active

@luukvankooten
Copy link

I got the same issue on React Native/expo. The issue occurs when the app is reloading.

@Kentokamoto
Copy link

Kinda going off of what @KaiVandivier mentioned about multiple active instances of React DevTools, turns out I was calling connectToDevTools() from the react-devtools-core package on startup.

Removing connectToDevTools() seems to have resolved the issue for me.

@RohovDmytro
Copy link

I was not able to locate the roots of the issue, but it occurs in my setup too.,

@RohovDmytro
Copy link

If I dismiss the error and try to debug I get this:

(node:8689) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 Expo::RELOAD listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug
Projects
None yet
Development

No branches or pull requests