-
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] Could not inspect element with id 10 #21579
Comments
This is interesting. The Looks like DevTools is returning the value of the first hook ( |
Ah, I think this bug is because you're running an older version of React (16.8). This looks to be the same problem that I fixed previously in #14940. I verified that upgrading react and react-dom in your example project fixes this problem. |
I'm actually using |
I am using v 17.0.2, latest v17 version, and the issue is occurring and blocking my project's dev. I don't want to upgrade to v18 for now. Please consider re-opening the issue.
|
I am using react 18.2.0 and suffering from this issue everyday. I can not inspect any element until I reload page with react devtool's "Component" panel open. Please consider reopening this issue 🙏 I run a simple app that created by create-react-app and this issue keep happening.
|
I reloaded my Chrome Extension and it started working for me. Might be worth a try. |
thank you! it works now |
Go to settings, where you have (Elements console components) scroll down to |
This problem can be associated with browser page lifecycle. |
Website or app
https://github.com/jacob-ebey/hooks-todo
Repro steps
git clone https://github.com/jacob-ebey/hooks-todo && cd hooks-todo/
npm i && npm run dev
TodoList
The Sources tab shows that local variable
visibleTodos
, which is an array, has the numeric value (0 or 1):The error message on the screenshot is
TypeError: visibleTodos.map is not a function
, its stack trace:Does not reproduce in production, e.g. at https://jacob-ebey.js.org/hooks-todo/#/. The error arises only in dev build.
How often does this bug happen?
Every time
DevTools package (automated)
react-devtools-extensions
DevTools version (automated)
4.13.5-0ae5290b54
Error message (automated)
Could not inspect element with id 10
Error call stack (automated)
No response
Error component stack (automated)
GitHub query string (automated)
The text was updated successfully, but these errors were encountered: