【问题标题】:react-native app crashes while I want to run debugger-ui react-native-debbugger当我想运行 debugger-ui react-native-debugger 时,react-native 应用程序崩溃
【发布时间】:2021-12-09 00:45:43
【问题描述】:
我已启动我的应用程序并使用npm install 安装npm packages,然后像往常一样使用npx react-native run-android 安装应用程序的调试版本,然后使用npx react-native start 启动应用程序。在我想使用 debugger-ui 并使用 react-native-debugger 或 fb-flipper 调试我的应用程序之前,一切正常。
在终端中按r 并从模拟器屏幕上显示的模式中选择Debug 时会出现问题。
这是我在终端中面临的错误:
还有这个在 chrome 控制台的 React Native Debugger 选项卡中:
【问题讨论】:
标签:
react-native
node-modules
npm-install
react-native-debugger
【解决方案1】:
由于我在这个项目中使用了最新版本的react-native-reanimated,并按照documentation 中的安装说明进行操作,所以我使用了这个命令来安装它:
npm install react-native-reanimated@next
我一直在研究文档,在仔细阅读之后,我发现react-native-reanimated@2 不适用于react-native-debugger,您可以运行debugger-ui 文档建议使用facebook flipper 另一个用于 react-native 应用的出色开发者工具。