【问题标题】:Can't find file index.ios.js in root directory react-native app在根目录 react-native app 中找不到文件 index.ios.js
【发布时间】:2017-10-12 04:29:02
【问题描述】:

react-native 新手,我正在尝试启动默认应用,但出现以下错误。

错误:捆绑失败:“找不到入口文件 index.ios.js 在任何 根源:

尝试做react-native start --reset-cache 但没有运气。也一直在搜索 GitHub 论坛,但没有运气。感谢所有的帮助。当前版本为0.49。请帮忙

【问题讨论】:

标签: javascript ios react-native


【解决方案1】:

确保完全关闭包管理器,然后尝试在项目根目录中运行它们:

npm start -- --reset-cache
react-native run-ios

如果您使用 watchman,这是预先设置的一组替代步骤,似乎适用于很多人:

watchman watch-del-all
rm -rf node_modules && npm install
npm start -- --reset-cache
react-native run-ios

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-03
    • 2018-03-09
    • 2018-04-01
    • 1970-01-01
    • 2016-12-31
    相关资源
    最近更新 更多