(NOBRIDGE) ERROR TypeError: null is not an object (evaluating '_reactNative.NativeModules.DevSettings.setIsDebuggingRemotely')

Author: mohamedelandyCreated Nov 19, 2024Updated Jan 28, 2025

React Native Version: 0.76.2 (New Architecture with Hermes enabled) Debugging Tool: react-native-devsettings (No Flipper installed)

Issue Description: Encountered an error when attempting to enable Remote JS Debugging using react-native-devsettings. The following error is thrown: (NOBRIDGE) ERROR TypeError: null is not an object (evaluating '_reactNative.NativeModules.DevSettings.setIsDebuggingRemotely')

Steps to Reproduce:

Use a React Native project configured with the new architecture and Hermes. Install and integrate the react-native-devsettings package to handle remote debugging. Attempt to enable Remote JS Debugging. Observe the error.

Expected Behavior: Remote JS Debugging should activate without errors.

Actual Behavior: Remote JS Debugging fails with the above error message.

Notes:

No Flipper is installed in the project. Feel free to ask for additional details if needed.

@jhen0409 Please review this issue and provide guidance. Thank you!

Simulator Screenshot - iPhone 16 Pro - 2024-11-19 at 15 46 20 Simulator Screenshot - iPhone 16 Pro - 2024-11-19 at 15 46 23

Source: jhen0409/react-native-debugger