【问题标题】:TypeError: undefined is not an object (evaluating 'NativeUnimoduleProxy.viewManagersNames.includes')TypeError:未定义不是一个对象(评估'NativeUnimoduleProxy.viewManagersNames.includes')
【发布时间】: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.

知道如何解决吗?该应用程序是一个托管的展览项目。

【问题讨论】:

标签: react-native expo


【解决方案1】:

这正是在经历了很多挣扎之后对我有帮助的东西:-D

如果您从旧版本安装新的 sdk45 并且在您的 react 本机应用程序中有骨架内容替换为这个: -> https://github.com/alexZajac/react-native-skeleton-content/issues/66

【讨论】:

    猜你喜欢
    • 2022-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-17
    • 2021-12-01
    • 2019-11-16
    • 2020-02-09
    相关资源
    最近更新 更多