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

[Android] Upgrading to RN 0.65.1 then in the Android emulator open debug causes error: Calling synchronous methods on native modules is not supported in Chrome. #32231

Closed
shinken008 opened this issue Sep 18, 2021 · 4 comments
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@shinken008
Copy link

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

After upgrading to React Native 0.65.1. Open the debugger in the Android emulator causes error:

ExceptionsManager.js:180 NativeUIManager.getConstantsForViewManager('getConstants') threw an exception. Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome.

But it was successful on IOS. with debugging I find ios bridge NaitveModule does not exist getConstants function, and it is a
function in the android, looks like a native module can't invoke in chrome. How to fix it, Please help.

React Native version:

0.65.1 (coming from 0.64.2)

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Come from React Native 0.64.2 and upgrade to RN 0.65.1
  2. Run debug in the Android

Expected Results

The debug worked in 0.64.2. The only change is upgrading to 0.65.1 to cause this to fail.

@shinken008
Copy link
Author

@shinken008 shinken008 changed the title Upgrading to RN 0.65.1 then in the Android emulator open debug causes error: Calling synchronous methods on native modules is not supported in Chrome. [Android]Upgrading to RN 0.65.1 then in the Android emulator open debug causes error: Calling synchronous methods on native modules is not supported in Chrome. Sep 23, 2021
@shinken008 shinken008 changed the title [Android]Upgrading to RN 0.65.1 then in the Android emulator open debug causes error: Calling synchronous methods on native modules is not supported in Chrome. [Android] Upgrading to RN 0.65.1 then in the Android emulator open debug causes error: Calling synchronous methods on native modules is not supported in Chrome. Sep 23, 2021
@richard-gaertner
Copy link

richard-gaertner commented Oct 26, 2021

I'm also experiencing the same issue (currently using v0.65.1) but apparantly this issue has been resolved in v0.66 #32197 (comment)

Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Mar 15, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants