我一直在尝试安装不同的版本,但我的应用程序不断崩溃,当我安装最新版本时,我在成功构建后收到此错误
LOG Running "main" with {"rootTag":1}
ERROR TypeError: Cannot read property 'filter' of undefined, js engine: hermes
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., js engine: hermes
RN 0.64.2
答案 0 :(得分:1)
也许您没有正确启用 Herms。 go to the link, and make sure to clean your .gradle
如果问题仍然存在,那么您可以简单地禁用 Herms,但对性能的影响很小。