Skip to content

Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome #28850

@andreycrane

Description

@andreycrane

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

Description

Hi. I found an issue which happens in chrome debugger when __DEV__ variable is set to true. The problem is connected with props validation. To reproduce it you just need to set "Pause on uncaught exception" in chrome debugger and reload you application.

React Native version:

System:
OS: Linux 4.15 Ubuntu 16.04.6 LTS (Xenial Xerus)
CPU: (4) x64 Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
Memory: 312.63 MB / 7.68 GB
Shell: 4.3.48 - /bin/bash
Binaries:
Node: 12.16.3 - ~/.nvm/versions/node/v12.16.3/bin/node
Yarn: Not Found
npm: 6.14.4 - ~/.nvm/versions/node/v12.16.3/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 21, 28, 29
Build Tools: 28.0.3, 29.0.3
System Images: android-21 | Intel x86 Atom, android-21 | Intel x86 Atom_64, android-24 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 1.8.0_252 - /usr/bin/javac
Python: 2.7.12 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
react-native: Not Found

Steps To Reproduce

  1. npm run start
  2. npm run android
  3. Open chrome debugger on http://localhost:8081/debugger-ui/
  4. Set up "Pause on uncaught exception" setting
  5. Reload the application on your device or emulator

Screenshots

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍Platform: LinuxBuilding on Linux.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions