android - 在任何根目录中都找不到入口文件 index.js

标签 android react-native

我有一个 React Native 项目,当我运行“react-native run-android”时,得到这个错误:

cannot find entry file index.js in any of the root

react-native 版本为 0.52.3

最佳答案

如果您使用的是 Windows 10,请降级您的 React 版本,导致 0.52.3 无法正常工作并且它有很多错误。

npm install react-native@0.43.8

关于android - 在任何根目录中都找不到入口文件 index.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51908224/

相关文章:

android - E/内存轨道 : Couldn't load memtrack Android studio

javascript - 过滤具有相同 id 的对象而不是 javascript .filter ()

javascript - React Native 不触发 Console.log

ios - React-Native xcrun : error: Failed to locate 'instruments' in Xcode 13

android - MediaCodec - 将 EOS 缓冲区发送到音频解码器时出现奇怪的错误

java - 如何使用退出按钮销毁应用程序及其所有 Activity

javascript - 如何为(-)创建正则表达式,在 formik setfieldvalue 中的 3 位数字后不重复

ios - 在 Debug模式下,API 请求有效。 Release模式,返回 null

android - 查找手动注册(混淆)的原生函数地址

android - Kotlin - @Stable 做什么?