升级到 Expo 44 后无法找到 DevMenu 模块

发布于 2025-01-17 03:31:33 字数 686 浏览 2 评论 0原文

我要疯了 - 当我在真实设备上启动应用程序时,我得到无法找到 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?

Real device:
enter image description here

Simulator logs:
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尛丟丟 2025-01-24 03:31:33

我也有同样的问题。解决这个问题的方法是安装 expo-dev-menu :

npm i expo-dev-menu

并将其导入我的 App.js 中。

import 'expo-dev-menu';

希望有帮助!

I had the same problem. What solved it was to install expo-dev-menu :

npm i expo-dev-menu

And importing it in my App.js.

import 'expo-dev-menu';

Hope it helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文