Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mohammedelnady opened this issue Nov 19, 2024 · 1 comment
Labels
API: Settings Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.

Comments

@mohammedelnady
Copy link

Description

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.

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.

React Native Version

0.76.2

Output of npx react-native info

System:

OS: macOS 15.1
CPU: (8) arm64 Apple M1
Memory: 1.04 GB / 16.00 GB
Shell:
Version: 5.9
Path: /bin/zsh
Binaries:

Node:
Version: 20.5.0
Path: ~/.nvm/versions/node/v20.5.0/bin/node
Yarn:
Version: 3.6.4
Path: ~/.nvm/versions/node/v20.5.0/bin/yarn
npm:
Version: 10.9.0
Path: ~/.nvm/versions/node/v20.5.0/bin/npm
Watchman:
Version: 2024.01.22.00
Path: /opt/homebrew/bin/watchman
Managers:

CocoaPods:
Version: 1.15.2
Path: ~/.rvm/gems/ruby-2.7.6/bin/pod
SDKs:

iOS SDK:
Platforms:
DriverKit 24.1
iOS 18.1
macOS 15.1
tvOS 18.1
visionOS 2.1
watchOS 11.1
Android SDK:
API Levels: 28, 29, 30, 31, 32, 33, 34, 35
Build Tools: 32.0.0, 34.0.0, 35.0.0
System Images:
android-29 | Google APIs ARM 64 v8a
android-29 | Google Play ARM 64 v8a
android-32 | Google APIs ARM 64 v8a
android-32 | Google Play ARM 64 v8a
android-33-ext5 | Google Play ARM 64 v8a
android-34 | Google Play ARM 64 v8a
android-TiramisuPrivacySandbox | Google Play ARM 64 v8a
android-UpsideDownCakePrivacySandbox | Google Play ARM 64 v8a
android-UpsideDownCakePrivacySandbox | Google Play Intel x86_64 Atom
Android NDK: Not Found
IDEs:

Android Studio: 2024.2 AI-242.23339.11.2421.12550806
Xcode:
Version: 16.1/16B40
Path: /usr/bin/xcodebuild
Languages:

Java:
Version: 20.0.2
Path: /usr/bin/javac
Ruby:
Version: 2.7.6
Path: ~/.rvm/rubies/ruby-2.7.6/bin/ruby
npmPackages:

@react-native-community/cli:
Installed: 15.0.1
Wanted: 15.0.1
react:
Installed: 18.3.1
Wanted: 18.3.1
react-native:
Installed: 0.76.2
Wanted: 0.71.0
react-native-macos: Not Found
npmGlobalPackages:

react-native: Not Found
Android:

Hermes Enabled: true
New Arch Enabled: true
iOS:

Hermes Enabled: true
New Arch Enabled: true

Screenshots and Videos

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

@mohammedelnady mohammedelnady added Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Triage 🔍 labels Nov 19, 2024
@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. API: Settings labels Nov 19, 2024
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API: Settings Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.
Projects
None yet
Development

No branches or pull requests

2 participants