【发布时间】:2022-07-04 20:29:19
【问题描述】:
我将 expo 从 sdk 44 升级到 sdk 45,我遇到了两个我无法解决的错误。
ERROR TypeError: undefined is not an object (evaluating 'NativeUnimoduleProxy.viewManagersNames.includes')
ERROR Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
知道如何解决吗?该应用程序是一个托管的展览项目。
【问题讨论】:
-
也许这个讨论会有所帮助? stackoverflow.com/q/62649381/18667225
-
安装
expo install expo-modules-core解决了这个问题。 github.com/unimodules/react-native-unimodules/issues/…
标签: react-native expo