使用Expo XDE找不到条目文件index.js [英] Cannot find entry file index.js with Expo XDE
问题描述
在Expo中加载我的本地应用程序时,出现错误:在任何根目录中都找不到入口文件index.js."
When I load my react-native app in Expo I get the error: "Cannot find entry file index.js in any of the roots."
我正在添加到现有的React Web App上,并在根级别具有index.ios.js.在本地,在模拟器中以及通过硬连线的手机上的Xcode,一切都可以正常工作.我已经用exp convert
转换了我的应用程序,并将所有信息集成到了exp.json
.
I am adding onto an existing React Web App, and have index.ios.js at the root level. Everything works fine locally, in simulator and through Xcode on my phone hardwired. I've converted my app with exp convert
and integrated all info into exp.json
.
有关ios应用的所有信息都包含在名为"ios"的文件夹中.
All info for the ios app is contained in a folder called "ios".
有人遇到这个问题或对如何解粘有任何想法吗?
Has anyone run into this or have any thoughts on how to get unstuck?
推荐答案
检查您的package.json并将index.js重命名为条目文件.
check you package.json and rename index.js to your entry file.
//...
},
"main": "index.js"
}
这篇关于使用Expo XDE找不到条目文件index.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!