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.

`Invariant Violation: Native module cannot be null` error info does not show the precise stack of which module is null

See original GitHub issue

i got this error: Invariant Violation: Native module cannot be null, and i want to know which native module is null so i can come to handle it, but the error stack message dose not show any useful message for me to investigate it

Invariant Violation: Native module cannot be null.
reportException @ ExceptionsManager.js:44
handleException @ ExceptionsManager.js:113
handleError @ setUpErrorHandling.js:23
reportFatalError @ error-guard.js:49
guardedLoadModule @ require.js:204
metroRequire @ require.js:128
(anonymous) @ deprecatedTypes.ts:40
executeApplicationScript @ RNDebuggerWorker.js:2
(anonymous) @ RNDebuggerWorker.js:2

React Native version:

System:
    OS: macOS Mojave 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 1.99 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.3.1 - /usr/local/bin/node
    Yarn: 1.16.0 - /usr/local/bin/yarn
    npm: 6.13.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 21, 23, 26, 27, 28
      Build Tools: 23.0.1, 26.0.1, 28.0.3, 29.0.2
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5900203
    Xcode: 11.2/11B52 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.4 => 0.61.4

Steps To Reproduce

[skip reproduce step]

Describe what you expected to happen:

the error log of Invariant Violation: Native module cannot be null. show the exact stack message of the null module

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:16
  • Comments:31

github_iconTop GitHub Comments

3reactions
arunios3195commented, Jun 11, 2020

Facing the same problem too IMG_0902 😦 Does anyone got solution for this?

3reactions
AgrawalAnsh22commented, May 13, 2020

I am facing the same issue after adding react-native-dialogflow to my app, I have reinstalled it, but still facing the same error. I really don;t understand how so many people are facing this issue and noone is able to resolve it for them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

(React Native - Invariant Violation: Native module cannot be null
This module (aws-amplify@unstable) introduced an error saying TypeError: undefined is not an object (evaluating '_core.Amplify.register') so ...
Read more >
Invariant Violation: Native module cannot be null. on Managed ...
I started receiving this error. I'm not sure where to look anymore. I went through the stack trace but in the end I...
Read more >
Troubleshooting | React Navigation
I'm getting an error "null is not an object (evaluating 'RNGestureHandlerModule.default.Direction')"​. This and some similar errors might occur if you have a ...
Read more >
React-Native, "Native Module Cannot Be Null" - ADocLib
Hey I'm getting Invariant Violation: Native module cannot be null error ... be null error info does not show the precise stack of...
Read more >
Errors | Node.js v19.3.0 Documentation
These are raised typically by the node:assert module. All JavaScript and system ... If no error was raised, the first argument will be...
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