Can't find record file index.ios.js in any of project roots ["/ Users / neo / newProjects / F2"]
Actual behavior
Instead of launching, I get a red screen and this error message when launching responsive native projects from scratch: Can't find the index.ios.js entry file in any of the project roots ["/ Users / neo / newProjects / F2"]
Expected behavior
Launching a clean application starter
What am i trying to do
I am trying to initialize and run a reactive project from scratch in android and ios simulator but I am getting the following error.
What i tried
I've tried the following:
Install via documentation
- Moving installation steps described here multiple times: https://facebook.github.io/react-native/docs/getting-started.html
Installing NPM
- Performing NPM Install from Project Folder
Editing .profiles (android)
- editing ~ .profiles file to set android home variable. This is how it looks now:
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" $
export ANDROID_HOME=${HOME}/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools`
Running Npm
Run npm start and check for activity on the port (package manager was started)
checking port for activity
(forget, like, its presence is checked)
Code that worked for someone ...
I also tried to run this code in terminal
react-native bundle \
--entry-file=index.ios.js \
--platform=ios \
--dev=false \
--assets-dest=./production/ios \
--bundle-output=./production/ios/ios.jsbundle
After seeing this article https://github.com/facebook/react-native/issues/8664
And got this error message: ENOENT: No such file or directory, open './production/ios/ios.jsbundle'
I noticed this sentence
rurunning npm install and rnpm link
I tried to run the rnpm link but didn't get "no such command found"
after reading this article Input file error in react native from packer
In the same article, I saw this:
"It turned out that after upgrading to 0.28 RN, my application spits out this issue due to incompatible dependencies. This is how I resolved this issue."
rm -rf node_modules
npm cache clean
Then open package.json except react-native change all package versions to *
Then run npm update --save npm update --save-dev
Check package if package .json is updated with version numbers, if not check from npmjs and update manually
Delete the app from the device and try to launch it again
- But I cannot discern what the advisor is doing here ... and the logic behind it ... if this seems relevant, can someone comment on this?
Terminal output
I get this in terminal:
Loading dependency graph, done.
error: bundling: Error
at DependencyGraph._getAbsolutePath
(/Users/neo/newProjects/F2/node_modules/react-native/packager/src/node-haste/index.js:272:11)
at DependencyGraph.getDependencies (/Users/neo/newProjects/F2/node_modules/react-native/packager/src/node-haste/index.js:216:26)
at Resolver.getDependencies (/Users/neo/newProjects/F2/node_modules/react-native/packager/src/Resolver/index.js:106:27)
at _resolverPromise.then.resolver (/Users/neo/newProjects/F2/node_modules/react-native/packager/src/Bundler/index.js:561:62)
at process._tickCallback (internal/process/next_tick.js:109:7)
Bundling `index.ios.js` 0.0% (0/1), failed.
Version
Node v7.9.0 react-native-cli: 2.0.1 react-native: 0.44.0 Homebrew 1.2.0 Newly updated xcode OSX 10.11.6 (15G1004)
What i notice
I notice what it looks like in this file .. ["/ Users / neo / newProjects / F2"] whereas in some places on my machine the files are organized by users / Neo / ... (capital username) ... and I feel like it has something to do with it.
also, when building the project, it throws this warning ... not sure what that means ... " react-native@0.44.0 " has an unsatisfied equal dependency " react@16.0.0 -alpha.6"
Any suggestions or ideas?
Update
tried to change directories from user folder and initialize
here is what i got in stacktrace
2017-05-02 09:25:21.478 xcodebuild[52491:5334564] Error saving log: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSFilePath=/code/F4/ios/build/Logs/Build/B9E13558-CCE5-4451-AC21-7E643189BF7B.xcactivitylog, NSLocalizedDescription=No such file or directory} | User info: {
NSFilePath = "/code/F4/ios/build/Logs/Build/B9E13558-CCE5-4451-AC21-7E643189BF7B.xcactivitylog";
NSLocalizedDescription = "No such file or directory";
}
Installing build/Build/Products/Debug-iphonesimulator/F4.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/F4.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Also, tried to install expo and run from there ...
This is what the terminal shows
Error sourcing shell startup scripts: /Users/neo/.bash_profile: line 2: rbenv: command not found
/Users/neo/.bash_profile: line 4: rbenv: command not found
/Users/neo/.bash_profile: line 5: rbenv: command not found
/Users/neo/.bash_profile: line 7: rbenv: command not found
/Users/neo/.bash_profile: line 9: rbenv: command not found
/bin/bash: shell_session_update: command not found
.
Run npm install -g exp && exp path``
10:25:22 AM
Starting React Native packager...
10:25:31 AM
Scanning 656 folders for symlinks in /code/my-new-project/node_modules (11ms)
10:25:32 AM
Loading dependency graph.
10:25:32 AM
Running packager on port 19001.
10:25:32 AM
10:25:37 AM
Dependency graph loaded.
10:25:51 AM
Project opened! You can now use the "Send Link" or "Device" buttons to view your project.
10:36:58 AM
Couldn't start project on Android: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
`
source to share
No one has answered this question yet
See similar questions:
or similar: