New app not running in simulator
See original GitHub issueDescription
Created a new app but cannot get it to run via iOS simulator.
Expected Behavior
What action did you perform, and what did you expect to happen?
yarn ios expected simulator to run app but get an error message.
Observed Behavior
What actually happened when you performed the above actions?
get these warnings on creating the app: warning “expo > react-native-maps@0.21.0” has incorrect peer dependency “react-native@^0.51 || ^0.52 || ^0.53 || ^0.54”. warning “react-native > eslint-plugin-react-native@3.2.1” has unmet peer dependency “eslint@^3.17.0 || ^4.0.0”. warning “jest-expo > babel-jest@22.4.3” has unmet peer dependency “babel-core@^6.0.0 || ^7.0.0-0”.
Console reads this after ‘yarn ios’:
17:14:52: Warning: ‘react’ peer dependency missing. Run npm ls
in /Users/Gavin/Desktop/myapp to see full warning.
17:14:52:
17:14:52: If there is an issue running your project, please run npm install
in /Users/Gavin/Desktop/myapp and restart.
Console reads this after ‘npm ls’: npm ERR! peer dep missing: react@16.3.1, required by react-native@0.55.3 npm ERR! extraneous: node-pre-gyp@0.9.1 /Users/Gavin/Desktop/test_app/node_modules/node-pre-gyp npm ERR! extraneous: websql@0.4.4 /Users/Gavin/Desktop/test_app/node_modules/websql npm ERR! missing: websql@https://github.com/expo/node-websql/archive/18.0.0.tar.gz, required by expo@27.0.1 npm ERR! peer dep missing: react-native@^0.51 || ^0.52 || ^0.53 || ^0.54, required by react-native-maps@0.21.0 npm ERR! peer dep missing: eslint@^3.17.0 || ^4.0.0, required by eslint-plugin-react-native@3.2.1
Environment
Please run these commands in the project folder and fill in their results:
react-native-scripts@1.14.0 react-native@0.55.3 expo@27.0.1 v8.4.0 4.6.1 1.5.1 “version”: “4.9.0”
Also specify:
- Operating system: macOS High Sierra 10.13.4
- Phone/emulator/simulator & version: Simulator Version 10.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:16
I tried again from zero, but i removed expo from simulator. Got the same warning but now it runs on the simulator.
if you’re using Expo, Update to a new version. same applies to the simulator, Delete the Expo client app from the simulator, and redownload from the command line yarn run ios. You can follow this link if you are having troubles in installation : https://docs.expo.io/versions/latest/introduction/installation