question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calling synchronous methods on native modules is not supported in Chrome

See original GitHub issue

Call the synchronized api, this appears: image

React Native version:

React Native Environment Info: System: OS: macOS 10.14.6 CPU: (4) x64 Intel® Core™ 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:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:16
  • Comments:39 (5 by maintainers)

github_iconTop GitHub Comments

14reactions
meshackjrcommented, Sep 16, 2021

experiencing exact same issue. It only happened after transition to react-native 0.65.1 worked totally fine before that. Tried to apply different solutions, but they all lead to some other issues.

1+ facing the same issue after just upgrading to 0.65.1

13reactions
stale[bot]commented, Oct 4, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invariant Violation: Calling synchronous ... - Stack Overflow
Invariant Violation : Calling synchronous methods on native modules is not supported in Chrome. Consider providing alternative methods to expose ...
Read more >
Calling synchronous methods on native modules is ... - Reddit
Calling synchronous methods on native modules is not supported in Chrome and 'main' has not been registered ... This error is due to...
Read more >
Cannot debug in chrome - Issues developing apps - OpenVidu
Invariant Violation : Calling synchronous methods on native modules is not supported in Chrome. Consider providing alternative methods to expose ...
Read more >
Android Native Modules
You can pass isBlockingSynchronousMethod = true to a native method to mark it as a synchronous method. ... At the moment, we do...
Read more >
Native Modules · React Native for Windows + macOS
When using web debugging you will see an exception that reads: Calling synchronous methods on native modules is not supported in Chrome.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found