Skip to content
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

[DevTools Bug] Unsupported Bridge operation "0" #24142

Closed
tuanbmfsoft opened this issue Mar 22, 2022 · 13 comments
Closed

[DevTools Bug] Unsupported Bridge operation "0" #24142

tuanbmfsoft opened this issue Mar 22, 2022 · 13 comments
Assignees

Comments

@tuanbmfsoft
Copy link

Website or app

React Native Init App

Repro steps

Just run the React-DevTools and then forward to port 8087 to debug in real device

How often does this bug happen?

Every time

DevTools package (automated)

react-devtools-core

DevTools version (automated)

4.24.1-ac574d688

Error message (automated)

Unsupported Bridge operation "0"

Error call stack (automated)

at /Users/tb921t/.npm-global/lib/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:48:335334
    at f.emit (/Users/tb921t/.npm-global/lib/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:48:278775)
    at /Users/tb921t/.npm-global/lib/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:48:280316
    at /Users/tb921t/.npm-global/lib/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:48:664831
    at Array.forEach (<anonymous>)
    at A.Zh.e.onmessage (/Users/tb921t/.npm-global/lib/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:48:664815)
    at A.t (/Users/tb921t/.npm-global/lib/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:39:2836)
    at A.emit (events.js:315:20)
    at e.exports.L (/Users/tb921t/.npm-global/lib/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:3:58322)
    at e.exports.emit (events.js:315:20)

Error component stack (automated)

No response

GitHub query string (automated)

https://api.github.com/search/issues?q=Unsupported Bridge operation  in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
@tuanbmfsoft tuanbmfsoft added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Mar 22, 2022
@tuanbmfsoft
Copy link
Author

I'm using the DevTools v4.24.1.
React-Native: 0.6.7

@suwu150
Copy link

suwu150 commented Mar 22, 2022

I'm using the DevTools v4.22.0.
React-Native: 0.67.3

also fail.

@bvaughn
Copy link
Contributor

bvaughn commented Mar 22, 2022

@tuanbmfsoft

To the best of my knowledge, 0.6.7 is not a valid version for React Native. I assume you meant 0.67?

Can you clarify what is meant by "React Native Init App" ? Are you referring to the expo init command? If so, I am unable to reproduce using expo init and React DevTools 4.24.1. That combination works for me.

Can you provide clearer repro steps? Without them, this issue isn't something we can act on.

@bvaughn
Copy link
Contributor

bvaughn commented Mar 22, 2022

I'm using the DevTools v4.22.0.
React-Native: 0.67.3

@suwu150 Please update to the latest version of React DevTools (4.24.1 at this time).

If that does not work, please share full repro instructions with us so that we can look into what's going wrong.

@tuanbmfsoft
Copy link
Author

Hi @bvaughn
I just create a project using react-native init and got this error.
i’m not using expo. And it’s 0.67 😄
Thank you for ur support.
Tuan

@bvaughn
Copy link
Contributor

bvaughn commented Mar 22, 2022

Thanks!

Okay to confirm: the repro requires using a new frontend (e.g. 4.24) with an older backend (e.g. 4.19).

@tuanbmfsoft
Copy link
Author

Hi @bvaughn
Just downgrade the devtools back to 4.19 and it working now.
Thank you.
Tuan

@bvaughn
Copy link
Contributor

bvaughn commented Mar 23, 2022

That works! Alternately you could upgrade react-devtools-core (the react-native dependency) to a newer version.

@EmmanuelCanto95
Copy link

Hi @bvaughn Just downgrade the devtools back to 4.19 and it working now. Thank you. Tuan

Same here! Thanks 😁

@bvaughn
Copy link
Contributor

bvaughn commented Mar 23, 2022

Glad to hear that you've both got this sorted out.

We are considering ways to improve the user experience on our end, but there might not be a great solution to this for older backend versions. Fortunately, newer React Native versions will depend on newer DevTools backends and this issue will gradually go away.

@bvaughn
Copy link
Contributor

bvaughn commented Mar 23, 2022

I think the best pragmatic thing we can do in this case would be to update the error UI in DevTools for this specific case so that, rather than showing something like this:
Screen Shot 2022-03-23 at 3 50 01 PM

We show something like this:
Screen Shot 2022-03-23 at 4 21 49 PM

@bvaughn
Copy link
Contributor

bvaughn commented Mar 23, 2022

I think we've done the best we can with this issue unfortunately. Going to close it.

@bvaughn bvaughn closed this as completed Mar 23, 2022
@bvaughn
Copy link
Contributor

bvaughn commented Mar 24, 2022

The above UI improvement has been published as version 4.24.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants