[英]Can't find file index.ios.js in root directory react-native app
New to react-native & I'm trying to launch the default app but I'm getting the following error. 新的反应原生 &我正在尝试启动默认应用程序,但我收到以下错误。
error: bundling failed: "Cannot find entry file index.ios.js in any of the roots:
错误:捆绑失败:“无法在任何根目录中找到条目文件index.ios.js:
Tried doing react-native start --reset-cache
but no luck. 尝试做
react-native start --reset-cache
但没有运气。 also been searching GitHub forums but no luck. 也一直在搜索GitHub论坛,但没有运气。 thanks for all the help.
感谢所有的帮助。 currently on version
0.49
. 目前版本
0.49
。 please help 请帮忙
Make sure you kill the package manager completely, then try running these in your projects root directory: 确保完全终止包管理器,然后尝试在项目根目录中运行它们:
npm start -- --reset-cache
react-native run-ios
If you use watchman, this is an alternative set of steps beforehand that seems to work with a lot of people: 如果你使用守望者,这是一个替代的一组步骤,似乎可以与很多人一起使用:
watchman watch-del-all
rm -rf node_modules && npm install
npm start -- --reset-cache
react-native run-ios
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.