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.

Release mode shows a crash with error Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.

See original GitHub issue

I am trying to build by app in release mode and need to run in simulator and in real device.

In simulator I am getting the error as

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.
2020-01-14 11:36:50.365808+0530 App[23363:273674] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.', reason: 'Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack:

react-native info

System:
    OS: macOS Mojave 10.14.2
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
    Memory: 38.57 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 9.4.0 - ~/.nvm/versions/node/v9.4.0/bin/node
    npm: 5.6.0 - ~/.nvm/versions/node/v9.4.0/bin/npm
  SDKs:
    iOS SDK:
      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
  IDEs:
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5 
  npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-git-upgrade: 0.2.7

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
no-response[bot]commented, Mar 4, 2020

It’s been three weeks since we asked for additional information from the author of this issue. As it happens, we don’t have enough information to take action. We are going to close this issue, but please do not hesitate to open a new issue if you are still encountering this problem.

3reactions
ericidecommented, Jun 20, 2020

I met the same problem I find that when i set --dev to false. it can run well. So I think,You can add the config “–dev false” when you create the js.bundle

Read more comments on GitHub >

github_iconTop Results From Across the Web

TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not ...
I had the same error and the problem was that I built the app in Release mode but the main.jsbundle was dev mode....
Read more >
'DevSettings' could not be found-React Native
[Solved]-Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found-React Native ... Due to this version change the above error ...
Read more >
'imageloader' could not be found. - You.com | The AI Search ...
Verify that a module by this name is registered in the native binary.#26987 ... mode shows a crash with error Invariant Violation: TurboModuleRegistry....
Read more >
TurboModuleRegistry.getEnforcing(...) error in react native
Verify that a module by this name is registered in the native binary. Invariant Violation: Module AppRegistry is not a registered callable ...
Read more >
Errors | Node.js v19.3.0 Documentation
catch or the Node.js process will exit immediately. With few exceptions, Synchronous APIs (any blocking method that does not accept a callback function,...
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