React-devtools: Started to crash quite recently with a "Uncaught TypeError: Cannot read property 'replace' of null" error

Created on 1 Oct 2018  ·  12Comments  ·  Source: facebook/react-devtools

This is happening to me in Electron when devtools 3.4.0 open. (UI is "Waiting for roots to load").

screenshot 2018-10-01 at 13 37 05
screenshot 2018-10-01 at 13 37 22

Most helpful comment

Got this in the Chrome extension initially after upgrading to [email protected] from 16.3, but resolved by disabling the extension and re-enabling. ¯\_(ツ)_/¯

All 12 comments

"topsecret", huh ? 😆

Same issue here..

Same issue here after I added chrome redux plugin.

Same issue...

Got this in the Chrome extension initially after upgrading to [email protected] from 16.3, but resolved by disabling the extension and re-enabling. ¯\_(ツ)_/¯

I had this bug on my macbook but not on windows pc. Then I updated React to 16.6 and got the same bug on win too :(

I fixed this issue removing the electron-react-devtools. I was using both electron-react-devtools and react-developer-tools.

Edit: I also removed the extensions folder and DevTools Extensions file from ~/.config/Electron.

I am getting the same issue in React Native with React 16.6

I had the same issue. I was able to fix it only by deleting the extensions folder. In my case (Windows):
C:\Users\{USERNAME}\AppData\Roaming\Electron

Other platforms:

  • $XDG_CONFIG_HOME or ~/.config on Linux
  • ~/Library/Application Support on macOS

Same error here.

I solved this issue on React Native by updating react-devtools-core to 3.6.1, steps:

  1. navigate to ./node_modules/react-native
  2. open package.json and update react-devtools-core to 3.6.1
  3. run yarn install or npm install

it should work 👍

React DevTools has been rewritten and recently launched a new version 4 UI. The source code for this rewrite was done in a separate repository and now lives in the main React repo (github.com/facebook/react).

Because version 4 was a total rewrite, and all issues in this repository are related to the old version 3 of the extension, I am closing all issues in this repository. If you can still reproduce this issue, or believe this feature request is still relevant, please open a new issue in the React repo: https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prasannavl picture prasannavl  ·  3Comments

mmahalwy picture mmahalwy  ·  3Comments

arghasarkar picture arghasarkar  ·  4Comments

bvaughn picture bvaughn  ·  4Comments

txiaocao picture txiaocao  ·  5Comments