-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
React Native Debugger doesn't use the global react-devtools version and still shows 'Unsupported' error #620
Comments
Please see the release note: Note about React DevToolsIf you got Question: I got
|
@jhen0409 it does not work and not clear solution. I removed from yarn.lock as you wrote, but got error when run application. Then I installed react-dev-tools in dev dependency and project start working, but error that 'Unsupported DevTools backend version' is still reproduced. It is annoing thing espacially if you have several projects with different react native version. |
@Arkan4ik what error did you got from running application? Here is another method:
|
@jhen0409 thanks. yarn resolutions and then updating global package works. I also see that you updated the doc. Awesome. Thank you |
@jhen0409 I'm still receiving this error after trying all 3 options. My package-lock.json has react-devtools version 4.13.4, same as the one in the debugger. Then i run Is there any way to manually set the frontend version being used by RN Debugger? |
@jack-ayoka I can describe what I did.
|
After banging on this for hours yesterday, this worked!!!!! thank you so much! |
I have referred the documentation , but its the same issue |
if you use npm, delete package.lock and install again with yarn, it helps me.. |
I use npm , for some reasons my expo project breaks if i run yarn.. so any solutions with NPM ? |
for anyone who still find solution first download react-native-debugger. Then you must open it at least 1 time npm i -g asar
asar e /Applications/React\ Native\ Debugger.app/Contents/Resources/app.asar /tmp/app
cd /tmp/app
# option 1
npm install react-devtools-core@^4 # or 4.22.1
## option 2
## If you still unlucky, try edit `/tmp/app/package.json` as photo below, then execute next line
# npm update react-devtools-core
# last step
asar p . /Applications/React\ Native\ Debugger.app/Contents/Resources/app.asar |
The "Unsupported DevTools backend version" error persists for me, having tried everything listed. The tool seems bent on using react-devtools 4.14.0-d0ec283819 no matter how I try to upgrade to 4.22.1 everywhere for both react-devtools and react-devtools-core. I am working on an Expo project, on a Mac. |
Same for me as @anttiabel |
Exact same as @anttiabel. I am making a new issue as it seems to be re-broken. EDIT: Changing to use the resolution of the version that RND is using fixed this issue:
DO NOT upgrade to 4.22.1, remove all of those and just add this resolution (in my case with yarn workspaces to the package.json that contains the RN project). |
I found Minimal reproductive sample: |
This worked for me. Started a brand new RN app, using CLI. Debugger showed version mismatch error. Added the resolution to |
@garrett-gottlieb I added the |
Did you |
For me the error never went even if i added the below and did a npm i (expo project) and also i tried all possible solutions as well with NPM
So i created a new expo project with |
This worked for me! I was using npm and switched to yarn. I had to |
For |
This was exactly the fix that worked for me. Thanks! |
I "npm install"ed 'react-devtools' and 'react-devtools-core' and set them to the same version "react-devtools": "~4.14.0", and re-installed everything by deleting package-lock.json and node_modules then ran npm install and it worked I think the problem was those packages not being the same version |
Why is every comment suggesting to pin to something like I'm really confused by this error message. |
This worked for me. Tnx |
Your comment is what finally saved me! I changed my resolutions to: and the error FINALLY WENT AWAY! Thank you! The error message has to be wrong. |
This worked for me. Thank you! |
For npm, simply add "overrides": {
"react-devtools-core": "4.14.0"
}, |
You asked the question that I was confused with after reading all these comments and how ppl reporting solutions are working! the error message seemed to me mean that RND was expecting react-devtools with version <4.11 but a higher version is always used. With that impression in mind, I have been trying to link an earlier version of react-devtools-core to the app, including by adding the resolution clause in the package.json. I checked the globally installed react-devtools in yarn and npm and made sure they are all of version 4.10.4, specify the version 4.10.4 in the resolution clause and etc. but non worked. Of course those changes won't be helpful because the direction was wrong! Once I changed the resolution section to specify the react-devtools-core to 4.14.0, ran yarn, and restarted the app, wow, all working now! |
I just edited my package.json file like below:
And added
before last code block:
If you are using yarn, delete yarn.lock file and run yarn install |
Seems like #706 is the PR to fix this by upgrading |
Hello all,
I'm having trouble using react native debugger. I get the 'Unsupported' error telling me to downgrade to 4.11.0.
After I ran
npm i -g react-devtools@"4.11.0"
, it installed the[email protected]
version globally. I checked that withnpm list -g
and it was installed correctly.The issue is that even though I have the react-devtools version 4.10.4 installed globally, I still see the same 'Unsupported' error message.
In the react native debugger app, the DevTools header still indicates version 4.13.4-51ebccc374 which I guess was installed by default when I installed react native debugger.
It seems that React Native Debugger doesn't use the global react-devtools version.
I installed react native debugger with homebrew:
brew install --cask react-native-debugger
I already tried uninstalling react native debugger, react-devtools and reinstalling everything again. With no success though..
Any ideas what else can I try ?
React Native Debugger app version: 0.11.9
React Native version: 0.62.2
Platform: iOS
Operating System: macOS Big Sur 11.4
Homebrew version: 3.1.9
The text was updated successfully, but these errors were encountered: