react / react/react-native

Reporting a bug for React Native DevTools

未关闭
#57,436 7 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Debugging Needs: Attention Needs: Repro Needs: Version Info
主要语言
C++
星标
127k
派生
25.3k
平均合并
1 天 23 小时
30 天内合并 PR
4

描述

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.)

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

报告中未指出源文件、测试或入口点。首先在 Windows 11 上创建一个新的 React Native 0.86.0 项目,安装一个 npm 包,重启 Metro,并打开 React Native DevTools 以确认空白屏幕。安装包后 DevTools UI 能正常打开,并且已记录完整的 Node.js、npm、模拟器和复现详情,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native
领域
devtools, mobile-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。