TypeError:未定义不是一个对象(评估“NativeUnimoduleProxy.viewManagersNames.includes”)
2022-06-03
3594
我将 expo 从 sdk 44 升级到 sdk 45,但出现了 2 个无法解决的错误。
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.
有什么办法可以修复它吗?该应用是一个托管的 expo 项目。
2个回答
这是我遵循的两个步骤来解决我的情况下的问题
446796345
Pratik Khadka
2022-07-19
经过一番挣扎,这里只是帮助了我 :-D
如果你正在从旧版本安装新的 sdk45,并且你的 React Native 应用程序中的骨架内容替换为这个: -> https://github.com/alexZajac/react-native-skeleton-content/issues/66
JamesoTheKing
2022-07-04