-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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] Element "41" not found #25755
Comments
This issue starts happening on my end as well, I tried to reinstall the extension but no difference |
updating Google Chrome to Version 108.0.5359.71 fixed it for me |
same problem, seems like it happens when redux is used. |
same here |
This worked for me. Make sure you go to Chrome's setting to update. The update indication on browser isn't showing. |
You might want to exit and completely quit Chrome and restart. |
same here. I used it a couple of hours ago. Is not working anymore |
Same here 🐛 |
Having this issue too. Warning appeared a couple days ago. Confirm what MohamedGallab said above, my project is also using Redux. |
I'm experiencing this issue too using the DevTools in Firefox (107.0). One common factor I see is that the "Element x not found" error appears for functional components that are using the |
Nice find, I also think that the useEffect hook has something to do with this. My components that don't use useEffect work just fine. |
…vtools (#25832) ## Summary We see recent bug reports like #25755 and #25769 for devtools. Whenever a component uses hook `useEffect`, it triggers an error. This was introduced in #25663 when we try to keep the `ReactFiberFlags` numbers consistent with reconciler, in order to fix an issue with server components. However, the values of `ReactFiberFlags` in reconciler were actually changed a while ago in b4204ed We made this mistake because, although it's not mentioned in the comment, `DidCapture` and `Hydrating` are actually used by DevTools This caused - the latest (not stable) react version is broken on devtools before 4.27.0 (but only in uncommon cases such server components) - all earlier react versions are broken on latest devtools (4.27.0) To keep most versions work, we need to revert the commit that changed the `ReactFiberFlags` values ## How did you test this change? 1. add a `useEffect` in a component in the TodoList of the shell, trigger the error in devtools 2. after change, the error is gone
…vtools (#25832) ## Summary We see recent bug reports like #25755 and #25769 for devtools. Whenever a component uses hook `useEffect`, it triggers an error. This was introduced in #25663 when we try to keep the `ReactFiberFlags` numbers consistent with reconciler, in order to fix an issue with server components. However, the values of `ReactFiberFlags` in reconciler were actually changed a while ago in b4204ed We made this mistake because, although it's not mentioned in the comment, `DidCapture` and `Hydrating` are actually used by DevTools This caused - the latest (not stable) react version is broken on devtools before 4.27.0 (but only in uncommon cases such server components) - all earlier react versions are broken on latest devtools (4.27.0) To keep most versions work, we need to revert the commit that changed the `ReactFiberFlags` values ## How did you test this change? 1. add a `useEffect` in a component in the TodoList of the shell, trigger the error in devtools 2. after change, the error is gone DiffTrain build for `d69b2cf8208848b0f71b5214ddff55a1ff437cc8`
Sorry for the inconvenience! |
Hi, thank you! I'll give it a try as soon as it's live on Chrome. |
It should be on Chrome web store now. Is the issue gone? |
I just checked, and the issue seems to be gone! Worked perfectly. |
Website or app
https://github.com/Afrokk/litmus.tools
Repro steps
In branch litmus.tools -> feature/LIT-5:
I just run the app and it throws this error.
How often does this bug happen?
Every time
DevTools package (automated)
react-devtools-extensions
DevTools version (automated)
4.27.0-bd2ad89a4
Error message (automated)
Element "41" not found
Error call stack (automated)
Error component stack (automated)
GitHub query string (automated)
The text was updated successfully, but these errors were encountered: