升级到 Expo 44 后无法找到 DevMenu 模块
我要疯了 - 当我在真实设备上启动应用程序时,我得到无法找到 DevMenu 模块
并且整个应用程序被冻结在启动屏幕上。我已经看到 this 这暗示了如果我关闭远程调试,它可以修复它,但应用程序完全没有响应,所以当我摇动它时,世博会选项不会显示。
当我在模拟器上启动它时,我看到了错误,但这不是致命的。同样,我似乎无法再在模拟器上打开 Expo 菜单来测试是否是远程调试器导致了问题。但除此之外,该应用程序在模拟器上运行良好。
无法找到 DevMenu 的模块
是什么错误?如何修复它?
I'm going crazy - when I launch the app on a real device, I'm getting Unable to find module for DevMenu
and the whole app is frozen on the splashscreen. I have seen this which alludes that if I turn off remote debugging, it could fix it, but the app is completely unresponsive, so when I shake it, the Expo options don't show up.
When I launch it on a simulator, I see the error, but it's not fatal. Again, I can not seem to open the Expo menu anymore on the simulator to test if it is the remote debugger causing the issue. But the app runs fine on the simulator, other than that.
What is the error Unable to find module for DevMenu
and how can I fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题。解决这个问题的方法是安装 expo-dev-menu :
并将其导入我的 App.js 中。
希望有帮助!
I had the same problem. What solved it was to install expo-dev-menu :
And importing it in my App.js.
Hope it helps!