Skip to content

TurboModuleRegistry Can't Find Turbo Native Module #2456

Open
@wallpunch

Description

@wallpunch

Environment

react-native -v: 10.9.2
npm ls react-native-macos: react-native-macos@0.76.7
node -v: v23.10.0
npm -v: 10.9.2
yarn --version: -bash: yarn: command not found
xcodebuild -version: Xcode 16.2 \ Build version 16C5032a

Steps to reproduce the bug

  1. Follow the steps here to create a new project with a Turbo Native Module: https://reactnative.dev/docs/turbo-native-modules-introduction (but add an "npx react-native-macos-init" step and use the macOS project for the iOS steps)
  2. Start Metro ("npm start")
  3. Build the project in Xcode

Expected Behavior

App should load successfully

Actual Behavior

Metro gives an error: TurboModuleRegistry.getEnforcing(...): 'NativeLocalStorage' could not be found. Verify that a module by this name is registered in the native binary.

Reproducible Demo

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions