-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Calling synchronous methods on native modules is not supported in Chrome #26705
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.61 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.
|
I have updated to the latest version, but I still have this error.
|
imho, it should this be in |
@zhigang1992 the error string is from:
|
It seems that the api with the sync mark has this error. |
@i7soft Did you ever find a solution for this problem? Currently experiencing this right now, and not being able to use a debugger is rough. update: Our problem ended up being related to a rollbar version upgrade, rollbar/rollbar-react-native#101 |
@TheNoodleMoose no💔,i am waitting a solution |
@i7soft Was react native the only thing you have updated? Ours was working after our React Native upgrade to the latest version, what broke it was a different package being upgraded. We used git bisect to find the culprit. |
@TheNoodleMoose i try this:
4.open debug mode
|
@i7soft So since it seems to be the |
@TheNoodleMoose I use |
I also meet this problem, i can not find any method to debug when i use synchronous method |
Ran into this problem when upgrading to react native 0.62.0. Still present. We are using |
Same here. Removing calls to Appearance in version 0.62 solved it. |
Can confirm that this happens with the Appearance API on the latest version (0.62) |
hey folks, thanks for surfacing this issue - we are putting it in front of the team that worked on it so that they can help us understand how to get this fixed. |
Summary: The appearance module uses sync native module methods which doesn't work with the chrome debugger. This broke in 0.62: #26705 This fix makes the appearance module return 'light' when using the chrome debugger. Changelog: [Fixed] Appearance `getColorScheme` no longer breaks the debugger Reviewed By: yungsters Differential Revision: D20879779 fbshipit-source-id: ad49c66226096433bc9f270e004ad4a6f54fa8c2
Summary: The appearance module uses sync native module methods which doesn't work with the chrome debugger. This broke in 0.62: #26705 This fix makes the appearance module return 'light' when using the chrome debugger. Changelog: [Fixed] Appearance `getColorScheme` no longer breaks the debugger Reviewed By: yungsters Differential Revision: D20879779 fbshipit-source-id: ad49c66226096433bc9f270e004ad4a6f54fa8c2
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Still facing this on v0.63.3, although temporarily commenting out all the sync methods works. |
We are experiencing the same issue on 0.63.3 |
you can use this temporary solution https://stackoverflow.com/a/66583605/8079868 |
same here |
@kelset Did anything ever come from the team taking a look at this? I'm having the same issue attempting to debug with React Native Debugger. |
@madroneropaulo @stdavis i made PR #31153 . but they closed PR by saying this is a feature. you have to patch react native like this https://stackoverflow.com/a/66583605/8079868 |
@nomi9995 That patch from SO led to other errors for me. |
@nomi9995 @stdavis I opened a new Issue, since I think the new one is related to the AuthRequest and not this one. expo/expo#12712 |
why is this closed when it still occurs ? |
@29er they will not handle this on chrome. you can see #31153. if you wanna run this on chrome then you can use patch https://stackoverflow.com/a/66583605/8079868 |
I'm getting this warning in the default ReactNative demo on running the application in debug mode (No dependencies added).
What's the fix? I don't want to edit the MessageQueue.js to suppress this. Downgrading to 0.64 doesn't cause this issue. |
@deepakaggarwal7 I have the same exact issue; I tried multiple solutions but no luck. |
@deepakaggarwal7 just created a new issue related to this with detailed info, feel free to comment there if you need |
+1, facing the same. Would be great if someone can help. Unable to debug the app on iOS and android. |
experiencing exact same issue. It only happened after transition to react-native 0.65.1 |
1+ facing the same issue after just upgrading to 0.65.1 |
same issue on 0.65.1 |
Same issue on 0.65.1 please help us |
guys, please refer to this open issue: it's better to report this on an open issue |
Call the synchronized api, this appears:
React Native version:
React Native Environment Info:
System:
OS: macOS 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz
Memory: 19.07 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.7.0 - /usr/local/bin/node
Yarn: 1.3.2 - /usr/local/bin/yarn
npm: 6.10.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
Android SDK:
API Levels: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 7, 8, 9
Build Tools: 22.0.1, 23.0.1, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2
System Images: android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 11.0/11A420a - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.10 => 0.59.10
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-create-library: 3.1.2
Steps To Reproduce
Describe what you expected to happen:
Snack, code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: