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] Element "9" not found | Also "Element "10" not found" / "Element "12" not found"... #25769

Closed
arbocobra opened this issue Dec 1, 2022 · 102 comments

Comments

@arbocobra
Copy link

arbocobra commented Dec 1, 2022

Website or app

https://github.com/arbocobra/redux-minesweeper

Repro steps

On first load I get multiple Error warnings on all app components from <Game/> down. They are identified with different Element numbers but appear to be directed to the same issue
"The error was thrown at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39558:15"

If you select 'Begin Game' in app the error in component <Game /> can be dismissed but new Errors appear on all newly rendered components below (once again all have different Element numbers directed to the same location (../main.js:39558:15)

//

This is issue is probably related to [DevTools Bug] Element "41" not found

Chrome is up to date (Version 108.0.5359.71 (Official Build) (x86_64)), and restarted.
I also tried reinstalling React extension (running 4.27.0).

The app is using Redux, which one commenter in other thread mentioned might be a commonality.

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 "9" not found

Error call stack (automated)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39558:15

Error component stack (automated)

at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40933:3)
    at Suspense
    at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
    at div
    at InspectedElementErrorBoundaryWrapper (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39771:3)
    at NativeStyleContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:42429:3)
    at div
    at div
    at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35080:3)
    at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37705:3)
    at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44505:52)
    at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39237:5)
    at div
    at div
    at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
    at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39439:5)
    at div
    at div
    at div
    at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39409:3)
    at TimelineContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44686:3)
    at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:44115:3)
    at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31940:3)
    at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32584:3)
    at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:39834:3)
    at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56039:3)

GitHub query string (automated)

https://api.github.com/search/issues?q=Element  not found in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
@arbocobra arbocobra added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Dec 1, 2022
@nokoro13
Copy link

nokoro13 commented Dec 2, 2022

I am experiencing the same bug right now

@anwern27
Copy link

anwern27 commented Dec 2, 2022

I am experiencing the same bug now

@KLIJIN
Copy link

KLIJIN commented Dec 2, 2022

same problem

5 similar comments
@fullsnack-coder
Copy link

same problem

@SthAneal
Copy link

SthAneal commented Dec 2, 2022

same problem

@NickoA96
Copy link

NickoA96 commented Dec 2, 2022

same problem

@gaurav-jo1
Copy link

same problem

@2256184693
Copy link

same problem

@abhagsain
Copy link

react core members reading the Same Problem comments

react-contributors-reading-issue

@gaurav-jo1
Copy link

@abhagsain 🤣🤣🤣🤣

@babak2000ir
Copy link

me too, actually devTools sent me here. so they're on it 👍

@BlakeMack
Copy link

same problem

@cojoclaudiu
Copy link

same here
Screenshot 2022-12-02 at 11 42 00

@Joker0824
Copy link

image

@sam-ckchan
Copy link

same🥲

@janjanarnaldo
Copy link

same problem

@CeloHill
Copy link

CeloHill commented Dec 2, 2022

same :(

@hamzatab
Copy link

hamzatab commented Dec 2, 2022

same x)

@luisaugs
Copy link

luisaugs commented Dec 2, 2022

Same here...
In my case happens when use useEffect on props from functional component.

@jeroanan
Copy link

jeroanan commented Dec 2, 2022

Same here

1 similar comment
@GailBowen
Copy link

Same here

@bigfarofa
Copy link

It's happening to me too ;_;

@rom-orlovich
Copy link

Same here. The bug happens when I try to create a list of inputs that do not respond to dom events like onClick and onChange.

@Alisoneoz
Copy link

Alisoneoz commented Dec 2, 2022

The same is happening here! help!

image

I was working with the authentication of users and wanted to display an error message in case of a failed authentication, using an onSubmit event listener

@kabirolawore
Copy link

The same too!

@ashrafqasem
Copy link

Same here

1 similar comment
@ubuntucow
Copy link

Same here

@Arnaud-De-Baerdemaeker
Copy link

Arnaud-De-Baerdemaeker commented Dec 6, 2022

From what I see (I have the errors aswell), it appears to be thrown by the strict mode of React.

Edit : Spoke too soon :') Even without strict mode it triggers.

@gaurav-jo1
Copy link

@Arnaud-De-Baerdemaeker no strict mode in my project

@babak2000ir
Copy link

It's even happening on "npx create-react-app my-app", even if there is no strict mode. It's not really Links, Router, useEffect or any external tool. It's a general show stopping bug everywhere and the status is not even confirmed. :/

@BlakeMack
Copy link

does anyone have any update as to if the react dev team are working on this react dev tools bug?

@gaurav-jo1
Copy link

@BlakeMack No clue 🙂

@Akatroj
Copy link

Akatroj commented Dec 6, 2022

hello sirs, I have the same problem 🫤

2 similar comments
@Yacubane
Copy link

Yacubane commented Dec 6, 2022

hello sirs, I have the same problem 🫤

@watislaf
Copy link

watislaf commented Dec 6, 2022

hello sirs, I have the same problem 🫤

@pdramirez-dev
Copy link

pdramirez-dev commented Dec 6, 2022

Hello I have the same issue

Captura de pantalla 2022-12-06 100606

@mondaychen
Copy link
Contributor

I'm looking into this

@mondaychen mondaychen self-assigned this Dec 6, 2022
@gaurav-jo1
Copy link

@mondaychen 🫂

@babak2000ir
Copy link

@mondaychen ♥️

@bebop76
Copy link

bebop76 commented Dec 6, 2022

Hi all,
same issue for me

Cattura

@chinanderm
Copy link

I think it's pretty clear there is an issue, so we don't need endless "me too" posts.

mondaychen added a commit that referenced this issue Dec 6, 2022
…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
github-actions bot pushed a commit that referenced this issue Dec 6, 2022
…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`
@mondaychen mondaychen removed the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Dec 6, 2022
@mondaychen
Copy link
Contributor

Sorry for the inconvenience!
We have submitted a patch (version 4.27.1) to the browser extension stores. It's still under review with Chrome and Edge, but is already published for Firefox https://addons.mozilla.org/en-US/firefox/addon/react-devtools/
Can people (who have Firefox) give it a test to see if the issue is gone for y'all?

@jesseagleboy
Copy link

Sorry for the inconvenience! We have submitted a patch (version 4.27.1) to the browser extension stores. It's still under review with Chrome and Edge, but is already published for Firefox https://addons.mozilla.org/en-US/firefox/addon/react-devtools/ Can people (who have Firefox) give it a test to see if the issue is gone for y'all?

It seems to work for me with Firefox now (and I think I am using the most updated version)

@KR-Soe
Copy link

KR-Soe commented Dec 7, 2022

It's still not published in Chrome 😢

@babak2000ir
Copy link

I installed the Firefox's latest devTool and the problem doesn't exist there, good job :)

@noszczykmichal
Copy link

Hi, I've checked the latest versions available on Firefox and Chrome, and they both work now. Thanks guys.

@villepaananen
Copy link

Updated the Chrome extension and now works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests