react / react/react-native

Reporting a bug for React Native DevTools

Open
#57,436 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Debugging Needs: Attention Needs: Repro Needs: Version Info
Dominant language
C++
Stars
127k
Forks
25.3k
Avg merge
1d 23h
Merged PRs (30d)
4

Description

Description

Bug Report: React Native DevTools shows a blank white/black screen after installing npm packages

React Native Version

0.86.0

Description

I created a new React Native project.

If I run the project immediately after creating it, React Native DevTools opens and works correctly.

However, after installing any npm package (even before using or importing it), React Native DevTools opens as a completely blank white/black screen.

The application itself may still run, but the DevTools UI becomes unusable.

Steps to Reproduce

  1. Create a new React Native project.
  2. Run the project.
  3. Open React Native DevTools (works correctly).
  4. Install an npm package, for example:
npm install <any-package>
  1. Restart Metro and run the application again.
  2. Open React Native DevTools.

Expected Behavior

React Native DevTools should open normally after installing additional npm packages.

Actual Behavior

React Native DevTools opens but displays only a blank white or black window.

Environment

  • OS: Windows 11
  • Node.js: (fill in)
  • npm: (fill in)
  • React Native: 0.86.0
  • Android Emulator: (fill in)
  • Hermes: Enabled
  • New Architecture: Enabled (default)

Additional Information

  • This happens consistently after installing npm packages.
  • The issue occurs even if the package is not imported into the project.
  • Restarting Metro does not resolve the problem.

Reproduction Repository

(Attach a minimal reproduction repository if possible.)

Steps to reproduce

Reporting a bug for React Native DevTools

React Native Version

0.86

Output of npx @react-native-community/cli info
# Bug Report: React Native DevTools shows a blank white/black screen after installing npm packages

## React Native Version


0.86.0


## Description

I created a new React Native project.

If I run the project immediately after creating it, React Native DevTools opens and works correctly.

However, after installing any npm package (even before using or importing it), React Native DevTools opens as a completely blank white/black screen.

The application itself may still run, but the DevTools UI becomes unusable.

## Steps to Reproduce

1. Create a new React Native project.
2. Run the project.
3. Open React Native DevTools (works correctly).
4. Install an npm package, for example:


npm install <any-package>


5. Restart Metro and run the application again.
6. Open React Native DevTools.

## Expected Behavior

React Native DevTools should open normally after installing additional npm packages.

## Actual Behavior

React Native DevTools opens but displays only a blank white or black window.

## Environment

* OS: Windows 11
* Node.js: (fill in)
* npm: (fill in)
* React Native: 0.86.0
* Android Emulator: (fill in)
* Hermes: Enabled
* New Architecture: Enabled (default)

## Additional Information

* This happens consistently after installing npm packages.
* The issue occurs even if the package is not imported into the project.
* Restarting Metro does not resolve the problem.

## Reproduction Repository

(Attach a minimal reproduction repository if possible.)
Screenshots and Videos

Bug Report: React Native DevTools shows a blank white/black screen after installing npm packages

React Native Version

0.86.0

Description

I created a new React Native project.

If I run the project immediately after creating it, React Native DevTools opens and works correctly.

However, after installing any npm package (even before using or importing it), React Native DevTools opens as a completely blank white/black screen.

The application itself may still run, but the DevTools UI becomes unusable.

Steps to Reproduce

  1. Create a new React Native project.
  2. Run the project.
  3. Open React Native DevTools (works correctly).
  4. Install an npm package, for example:
npm install <any-package>
  1. Restart Metro and run the application again.
  2. Open React Native DevTools.

Expected Behavior

React Native DevTools should open normally after installing additional npm packages.

Actual Behavior

React Native DevTools opens but displays only a blank white or black window.

Environment

  • OS: Windows 11
  • Node.js: (fill in)
  • npm: (fill in)
  • React Native: 0.86.0
  • Android Emulator: (fill in)
  • Hermes: Enabled
  • New Architecture: Enabled (default)

Additional Information

  • This happens consistently after installing npm packages.
  • The issue occurs even if the package is not imported into the project.
  • Restarting Metro does not resolve the problem.

Reproduction Repository

(Attach a minimal reproduction repository if possible.)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is identified in the report. First create a new React Native 0.86.0 project on Windows 11, install an npm package, restart Metro, and open React Native DevTools to confirm the blank screen. Done means the DevTools UI opens normally after installing a package, with complete Node.js, npm, emulator, and reproduction details recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
devtools, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.