profile
viewpoint

Ask questions"DevTools v4 is incompatible with this version of React" with React Native & latest version of React

<!-- Note: if the issue is about documentation or the website, please file it at: https://github.com/reactjs/reactjs.org/issues/new -->

Do you want to request a feature or report a bug? Bug What is the current behavior? After starting react-devtools, I get the following error message:

DevTools v4 is incompatible with this version of React
Either upgrade React or install React DevTools v3:

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

  • Use expo cli to initialize an expo app
  • run yarn add react@latest to ensure the most recent version of React is installed (currently v16.11.0)
  • run yarn add react-devtools to install react-devtools
  • run yarn start to start the app
  • run npx react-devtools to open react-devtools

What is the expected behavior? react-devtools should work with React Native and the latest version of React

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React? React 16.11.0 React Native 0.59.3 Fedora 30

facebook/react

Answer questions a-c-sreedhar-reddy

@umairrafiq1133 I downgraded but when I run react-devtools I get

───────────────────────────────────────────╮ │ │ │ Update available 3.6.3 → 4.2.0 │ │ Run npm i -g react-devtools to update │ │

useful!
source:https://uonfu.com/
Github User Rank List