Skip to content

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. #56412

@aanom

Description

@aanom

Description

I have RN 79.5 and trying to upgrade it to 83.4 via following RN updater helper getting issue.

Steps to reproduce

Update RN 79.5 -> 83.4 via helper this issue will reproduce

React Native Version

0.83.4

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

System:
  OS: macOS 15.6.1
  CPU: (8) arm64 Apple M2
  Memory: 135.28 MB / 16.00 GB
  Shell:
    version: 3.2.57
    path: /bin/bash
Binaries:
  Node:
    version: 24.3.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 11.6.0
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2025.06.30.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/amitku/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "23"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "34"
      - "35"
      - "35"
      - "35"
      - "36"
    Build Tools:
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 36.0.0
      - 36.1.0
    System Images:
      - android-31 | Google Play ARM 64 v8a
      - android-32 | Google Play ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
      - android-35 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
      - android-35 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
      - android-36 | Google APIs ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
      - android-36 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
      - android-VanillaIceCream | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.3 AI-253.30387.90.2532.14935130
  Xcode:
    version: 26.3/17C529
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.3.0
    path: /Users/amitku/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.2.0
    wanted: 19.2.0
  react-native:
    installed: 0.83.4
    wanted: 0.83.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

**E** Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","RedBox","BugReporting","HeadlessJsTaskSupport","PlatformConstants"]}, js engine: hermes

**E** [runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","RedBox","BugReporting","HeadlessJsTaskSupport","PlatformConstants"]}

**W** ReactHost{0}.handleHostException(message = "[runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","RedBox","BugReporting","HeadlessJsTaskSupport","PlatformConstants"]}, stack:
                                                                                                    anonymous@32:290
                                                                                                    anonymous@54:449
                                                                                                    anonymous@53:716
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@52:565
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@51:44
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@64:76
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@62:108
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@200:485
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@199:149
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@197:92
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@196:118
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@195:617
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@193:1045
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@182:181
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@80:158
                                                                                                    _@2:1706
                                                                                                    d@2:1084
                                                                                                    i@2:500
                                                                                                    global@3917:3
                                                                                                    ")

**E** Exception in native call from JS (Fix with AI)
                                                                                                    com.facebook.react.common.JavascriptException: [runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","RedBox","BugReporting","HeadlessJsTaskSupport","PlatformConstants"]}, stack:
                                                                                                    anonymous@32:290
                                                                                                    anonymous@54:449
                                                                                                    anonymous@53:716
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@52:565
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@51:44
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@64:76
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@62:108
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@200:485
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@199:149
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@197:92
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@196:118
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@195:617
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@193:1045
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@182:181
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@80:158
                                                                                                    _@2:1706
                                                                                                    d@2:1084
                                                                                                    i@2:500
                                                                                                    global@3917:3
                                                                                                    
                                                                                                    	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.kt:52)
                                                                                                    	at com.facebook.react.runtime.ReactInstance$ReactJsExceptionHandlerImpl.reportJsException(ReactInstance.kt:291)
                                                                                                    	at com.facebook.jni.NativeRunnable.run(Native Method)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:995)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:103)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.kt:21)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:248)
                                                                                                    	at android.os.Looper.loop(Looper.java:338)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion.startNewBackgroundThread$lambda$0(MessageQueueThreadImpl.kt:152)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion.$r8$lambda$YYXYCFexeoKtAeDpeNYkxZZlpbA(Unknown Source:0)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
                                                                                                    	at java.lang.Thread.run(Thread.java:1119)

 **W** ReactHost{0}.getOrCreateDestroyTask()

**W** ReactHost{0}.raiseSoftException(getOrCreateDestroyTask()): handleHostException(message = "[runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","RedBox","BugReporting","HeadlessJsTaskSupport","PlatformConstants"]}, stack:
                                                                                                    anonymous@32:290
                                                                                                    anonymous@54:449
                                                                                                    anonymous@53:716
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@52:565
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@51:44
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@64:76
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@62:108
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@200:485
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@199:149
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@197:92
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@196:118
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@195:617
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@193:1045
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@182:181
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@80:158
                                                                                                    _@2:1706
                                                                                                    d@2:1084
                                                                                                    i@2:500
                                                                                                    global@3917:3
                                                                                                    ")

**E**  [runtime not ready]: Error: Non-js exception: AppRegistryBinding::startSurface failed. Global was not installed.

**E**  Unhandled SoftException (Fix with AI)
                                                                                                    com.facebook.react.bridge.ReactNoCrashSoftException: raiseSoftException(getOrCreateDestroyTask()): handleHostException(message = "[runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","RedBox","BugReporting","HeadlessJsTaskSupport","PlatformConstants"]}, stack:
                                                                                                    anonymous@32:290
                                                                                                    anonymous@54:449
                                                                                                    anonymous@53:716
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@52:565
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@51:44
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@64:76
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@62:108
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@200:485
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@199:149
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@197:92
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@196:118
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@195:617
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@193:1045
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@182:181
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@80:158
                                                                                                    _@2:1706
                                                                                                    d@2:1084
                                                                                                    i@2:500
                                                                                                    global@3917:3
                                                                                                    ")
                                                                                                    	at com.facebook.react.runtime.ReactHostImpl.raiseSoftException(ReactHostImpl.kt:861)
                                                                                                    	at com.facebook.react.runtime.ReactHostImpl.getOrCreateDestroyTask(ReactHostImpl.kt:1422)
                                                                                                    	at com.facebook.react.runtime.ReactHostImpl.destroy$lambda$11(ReactHostImpl.kt:500)
                                                                                                    	at com.facebook.react.runtime.ReactHostImpl.$r8$lambda$RqPT6VdmhA-RKBsb9qAdshHTgug(Unknown Source:0)
                                                                                                    	at com.facebook.react.runtime.ReactHostImpl$$ExternalSyntheticLambda35.call(D8$$SyntheticClass:0)
                                                                                                    	at com.facebook.react.runtime.internal.bolts.Task$Companion.call$lambda$2(Task.kt:319)
                                                                                                    	at com.facebook.react.runtime.internal.bolts.Task$Companion.$r8$lambda$MFqd_-X5KhHmu0hvNE2Bec_4mJM(Unknown Source:0)
                                                                                                    	at com.facebook.react.runtime.internal.bolts.Task$Companion$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
                                                                                                    	at java.lang.Thread.run(Thread.java:1119)
                                                                                                    Caused by: com.facebook.react.common.JavascriptException: [runtime not ready]: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'PlatformConstants' could not be found. Verify that a module by this name is registered in the native binary. Bridgeless mode: true. TurboModule interop: false. Modules loaded: {"NativeModules":[],"TurboModules":[],"NotFound":["NativePerformanceObserverCxx","NativePerformanceCxx","NativeReactNativeFeatureFlagsCxx","RedBox","BugReporting","HeadlessJsTaskSupport","PlatformConstants"]}, stack:
                                                                                                    anonymous@32:290
                                                                                                    anonymous@54:449
                                                                                                    anonymous@53:716
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@52:565
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@51:44
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@64:76
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@62:108
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@200:485
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@199:149
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@197:92
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@196:118
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@195:617
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@193:1045
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@182:181
                                                                                                    _@2:1706
                                                                                                    d@2:1154
                                                                                                    i@2:500
                                                                                                    anonymous@80:158
                                                                                                    _@2:1706
                                                                                                    d@2:1084
                                                                                                    i@2:500
                                                                                                    global@3917:3
                                                                                                    
                                                                                                    	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.kt:52)
                                                                                                    	at com.facebook.react.runtime.ReactInstance$ReactJsExceptionHandlerImpl.reportJsException(ReactInstance.kt:291)
                                                                                                    	at com.facebook.jni.NativeRunnable.run(Native Method)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:995)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:103)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.kt:21)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:248)
                                                                                                    	at android.os.Looper.loop(Looper.java:338)

MANDATORY Reproducer

nil

Screenshots and Videos

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions