[英]React-Native stuck at Loading dependency graph done. No errors
I have a problem with my app, after running react-native run-android, the procees stop with blank page app at get stuck at loading dependency graph done... nothing happens. 我的应用程序出现问题,运行react-native run-android后,程序停止运行,并停留在空白页应用程序上,无法完成依赖关系图的加载...没有任何反应。 Everything was ok and suddenly not work anymore.
一切都很好,突然不工作了。
I tried everything i found on the internet... still not working. 我尝试了在互联网上找到的所有内容...仍然无法正常工作。 Any ideas?
有任何想法吗?
Probably, it might be an issue with watchman. 也许,这可能是守望者的问题。 Please try to close all terminals and emulator, clean the project and give the build.
请尝试关闭所有终端和仿真器,清理项目并进行构建。 It did worked with me when i came across the same situation.
当我遇到相同的情况时,它确实对我有用。
When you're unable to load a bundle, look at the packager logs or the error message displayed in the Expo client to see if it's related to the packager. 当您无法加载捆绑软件时,请查看打包程序日志或Expo客户端中显示的错误消息,以查看它是否与打包程序有关。 If so, you should try clearing the packager's state to reduce the chance the bug is related to a stale cache or corrupt process.
如果是这样,则应尝试清除打包程序的状态,以减少该错误与过时的缓存或损坏的进程相关的机会。
These instructions are for macOS and Linux, but the general ideas apply to Windows as well. 这些说明适用于macOS和Linux,但一般思路也适用于Windows。
Stop XDE/exp, which should also stop the packager. 停止XDE / exp,这也应该停止打包程序。 Check your list of running processes to ensure these processes are not running.
检查您正在运行的进程的列表,以确保这些进程未运行。
And just to be sure, force quit the Expo client on your phone or simulator and re-open it. 并且可以肯定的是,强制退出手机或模拟器上的Expo客户端并重新打开它。
None of the above answers worked for me. 上面的答案对我都不起作用。 I had this issue after transferring my data from my old mac to my new one.
将数据从旧的Mac传输到新的Mac之后,出现了这个问题。 It turned out that the brew installed python was not properly transferred.
原来,未正确安装brew安装的python。 So, basically I uninstalled and reinstalled watchman.
因此,基本上我卸载并重新安装了watchman。
brew uninstall watchman python
brew install watchman
I then restarted the packager, and I was ready to go. 然后,我重新启动了打包程序,然后就可以开始了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.