-
Notifications
You must be signed in to change notification settings - Fork 49k
Closed
Labels
Component: Developer ToolsStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug
Description
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
- Open http://localhost:3000/ in Chrome, if it wasn't opened automatically
- Open DevTools
- Go to Source tab and enable the "Pause on exceptions" icon
- Go to Components tab (the tab of React DevTools)
- Click in the components tree on the component
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:
TodoList (TodoList.js:90)
L (react_devtools_backend.js:12276)
exports.inspectHooksOfFiber (react_devtools_backend.js:12342)
inspectElementRaw (react_devtools_backend.js:7562)
inspectElement (react_devtools_backend.js:7807)
(anonymous) (react_devtools_backend.js:9561)
emit (react_devtools_backend.js:4175)
(anonymous) (react_devtools_backend.js:10201)
listener (react_devtools_backend.js:10975)
postMessage (async)
handleMessageFromDevtools (contentScript.js:107)
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)
at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31392:3)
at Suspense
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30033:5)
at div
at InspectedElementErrorBoundaryWrapper (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30176:3)
at NativeStyleContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32661:3)
at div
at div
at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28268:3)
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28709:3)
at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34512:52)
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30033:5)
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30147:5)
at div
at div
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34138:3)
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24945:3)
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25548:3)
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30234:3)
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37241:3)
GitHub query string (automated)
https://api.github.com/search/issues?q=Could not inspect element with id 10 in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
Metadata
Metadata
Assignees
Labels
Component: Developer ToolsStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug