简体   繁体   English

在根目录react-native app中找不到文件index.ios.js

[英]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.

相关问题 如何重命名react-native条目文件(index.ios.js) - How to rename react-native entry file (index.ios.js) 如何在React Native中使用index.js代替(index.ios.js,index.android.js)进行跨平台应用? - How to use index.js instead of (index.ios.js, index.android.js) in React Native for cross-platform app? React Native:如何结合index.ios.js和index.android.js - React native: how to combine index.ios.js and index.android.js React-native无法找到简单的js学习变量 - React-native Can't find variable simple js learning 将Multilpe组件导入index.ios.js - Importing multilpe components to index.ios.js React Native在新的初始化应用程序上找不到模块./index - React Native can't find module ./index on fresh initialized app React-native打字稿:找不到变量:React - React-native typescript: Can't find variable: React react-native [iOS] RCTAssert RCTFormatError 165 ReferenceError:找不到变量:typeAnnotation - react-native [iOS] RCTAssert RCTFormatError 165 ReferenceError: Can't find variable: typeAnnotation 启用Debug JS Remotely时,无法在React-Native应用程序上向API发出请求 - Can't make request to API on React-Native app when Debug JS Remotely is enabled react-native:导入后找不到变量样式表 - react-native: Can't find variable Stylesheet after importing it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM