Change:
typeof setSuspenseHandler === 'function' && typeof scheduleUpdate === 'function'; <del> // Set of Fibers (IDs) with recently changed number of error/warning messages. const fibersWithChangedErrorOrWarningCounts: Set<number> = new Set(); </del> <ins> // Tracks Fibers with recently changed number of error/warning messages. // These collections store the Fiber rather than the ID, // in order to avoid generating an ID for Fibers that never get mounted // (due to e.g. Suspense or error boundaries). // onErrorOrWarning() adds Fibers and recordPendingErrorsAndWarnings() later clears them. const fibersWithChangedErrorOrWarningCounts: Set<Fiber> = new Set(); const pendingFiberToErrorsMap: Map<Fiber, Map<string, number>> = new Map(); const pendingFiberToWarningsMap: Map<Fiber, Map<string, number>> = new Map(); </ins> // Mapping of fiber IDs to error/warning messages and counts. <del> const fiberToErrorsMap: Map<number, Map<string, number>> = new Map(); const fiberToWarningsMap: Map<number, Map<string, number>> = new Map(); </del> <ins> const fiberIDToErrorsMap: Map<number, Map<string, number>> = new Map(); const fiberIDToWarningsMap: Map<number, Map<string, number>> = new Map(); </ins> function clearErrorsAndWarnings() { // eslint-disable-next-line no-for-of-loops/no-for-of-loops <del> for (const id of fiberToErrorsMap.keys()) { fibersWithChangedErrorOrWarningCounts.add(id); updateMostRecentlyInspectedElementIfNecessary(id); </del> <ins> for (const id of fiberIDToErrorsMap.keys()) { const fiber = idToArbitraryFiberMap.get(id); if (fiber != null) { fibersWithChangedErrorOrWarningCounts.add(fiber); updateMostRecentlyInspectedElementIfNecessary(id); } </ins> } // eslint-disable-next-line no-for-of-loops/no-for-of-loops <del> for (const id of fiberToWarningsMap.keys()) { fibersWithChangedErrorOrWarningCounts.add(id); updateMostRecentlyInspectedElementIfNecessary(id); </del> <ins> for (const id of fiberIDToWarningsMap.keys()) { const fiber = idToArbitraryFiberMap.get(id); if (fiber != null) { fibersWithChangedErrorOrWarningCounts.add(fiber); updateMostRecentlyInspectedElementIfNecessary(id); } </ins> } <del> fiberToErrorsMap.clear(); fiberToWarningsMap.clear(); </del> <ins> fiberIDToErrorsMap.clear(); fiberIDToWarningsMap.clear(); </ins> flushPendingEvents(); } <del> function clearErrorsForFiberID(id: number) { if (fiberToErrorsMap.has(id)) { fiberToErrorsMap.delete(id); fibersWithChangedErrorOrWarningCounts.add(id); flushPendingEvents(); } </del> <ins> function clearMessageCountHelper( fiberID: number, pendingFiberToMessageCountMap: Map<Fiber, Map<string, number>>, fiberIDToMessageCountMap: Map<number, Map<string, number>>, ) { const fiber = idToArbitraryFiberMap.get(fiberID); if (fiber != null) { // Throw out any pending changes. pendingFiberToErrorsMap.delete(fiber); </ins> <del> updateMostRecentlyInspectedElementIfNecessary(id); } </del> <ins> if (fiberIDToMessageCountMap.has(fiberID)) { fiberIDToMessageCountMap.delete(fiberID); // If previous flushed counts have changed, schedule an update too. fibersWithChangedErrorOrWarningCounts.add(fiber); flushPendingEvents(); </ins> <del> function clearWarningsForFiberID(id: number) { if (fiberToWarningsMap.has(id)) { fiberToWarningsMap.delete(id); fibersWithChangedErrorOrWarningCounts.add(id); flushPendingEvents(); </del> <ins> updateMostRecentlyInspectedElementIfNecessary(fiberID); } else { fibersWithChangedErrorOrWarningCounts.delete(fiber); } </ins> } <ins> } </ins> <del> updateMostRecentlyInspectedElementIfNecessary(id); </del> <ins> function clearErrorsForFiberID(fiberID: number) { clearMessageCountHelper( fiberID, pendingFiberToErrorsMap, fiberIDToErrorsMap, ); } function clearWarningsForFiberID(fiberID: number) { clearMessageCountHelper( fiberID, pendingFiberToWarningsMap, fiberIDToWarningsMap, ); </ins> } function updateMostRecentlyInspectedElementIfNecessary(

Discussion:
the block to inspect "Component" in DevTools : "Could not inspect element with id 5" Originally reported in https://user- Every time
Here's another Chrome extension build with the fix from :
Everything fixed. Awesome :+1:
FYI just published as 4.13.4