当我想要 运行 debugger-ui react-native-debugger 时,react-native 应用程序崩溃

react-native app crashes while I want to run debugger-ui react-native-debbugger

我已经启动了我的应用程序并使用 npm install 安装了 npm packages,然后像往常一样我使用 npx react-native run-android 安装了应用程序的调试版本,然后使用 [=15] 启动了应用程序=].工作正常,直到我想使用 debugger-ui 并使用 react-native-debuggerfb-flipper 调试我的应用程序。 在终端中按 r 并从出现在模拟器屏幕上的模态中选择 Debug 时会出现问题。 这是我在终端机上遇到的错误:

还有 chrome 控制台 React Native Debugger 选项卡中的这个:

因为我在这个项目中使用的是最新版本的 react-native-reanimated 并且遵循了 documentation 中的安装说明,所以我使用了这个命令来安装它:

npm install react-native-reanimated@next

我一直在研究文档,在仔细阅读之后我发现 react-native-reanimated@2 不能与 react-native-debugger 一起使用,您可以 运行 debugger-ui 文档推荐使用 facebook flipper 另一个用于 react-native 应用程序的惊人的开发人员工具。