expo / create-react-native-app

Create React Native apps that run on iOS, Android, and web
BSD 3-Clause "New" or "Revised" License
13.26k stars 1.35k forks source link

react-native-scripts start stuck at "Starting packager..." #343

Closed ATF19 closed 6 years ago

ATF19 commented 7 years ago

Description

I can't start any CRNA project because it get stuck at "Starting packager", i tried many project but the problem still remains. It always get stuck at "Starting packager..."

Expected Behavior

It should start the project and show me the expo QR code

Observed Behavior

Stuck at "Starting packager..."

Note

npm shows me an unmet dependency error with expo and react: npm ERR! peer dep missing: react@>=15.3.1, required by lottie-react-native@1.1.1 npm ERR! peer dep missing: react@>=15.4.0, required by react-native-branch@2.0.0-beta.3

Environment

  1. Operating system: Ubuntu 16.04
AlexB801 commented 6 years ago

I am, just tried that and still won't load my javascript bundle. Can I ask what version of watchman you are running?

jessequinn commented 6 years ago

@AlexB801 4.9.0

jessequinn commented 6 years ago

Here is my package.json

{ "name": "UdaciFitness", "version": "0.1.0", "private": true, "devDependencies": { "react-native-scripts": "1.14.0", "jest-expo": "~27.0.0", "react-test-renderer": "16.3.1" }, "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js", "scripts": { "start": "react-native-scripts start", "eject": "react-native-scripts eject", "android": "react-native-scripts android", "ios": "react-native-scripts ios", "test": "jest" }, "jest": { "preset": "jest-expo" }, "dependencies": { "expo": "^27.0.1", "react": "16.3.1", "react-native": "~0.55.2", "react-navigation": "1.5.11", "react-redux": "^5.0.6", "redux": "^3.7.2", "udacifitness-calendar": "^11.0.0" } }

AlexB801 commented 6 years ago

Hmmm. Keep getting same error about react-native-scripts in node_modules.

jessequinn commented 6 years ago

@AlexB801 not sure, as I did not receive that message. Are you using NPM or YARN to start the app? I am successful with npm run ios.

AlexB801 commented 6 years ago

I've tried them all. lol always stops at the javascript bundle load error.

LesedimotaungNC commented 6 years ago

Ive tried everything and still no luck... though it worked using expo XDE

nguyenvu commented 6 years ago

When it says "Starting packager..." press the "q" key. To show QR code

Thank you sir, you make my night!

I've tried to reinstall 'exp' by: sudo npm install -g exp on Mac and the problem is solved.

I-O-O-I commented 6 years ago

If you did npm audit fix you might have updated your dependencies to latest versions and the problem is that REACT-NATIVE 0.56. DOESNT WORK WITH EXPO 27. You should use 0.55. REACT-NATIVE and never run npm audit fix but npm audit to fix manually

This works for me in package.json

"expo": "^27.0.1",
"react": "16.3.1",
"react-native": "~0.55.2",

here is table of compatabilities image

chai86 commented 6 years ago

Even though i've lined up my versions to the table above (row with 0.55.0 react-native), i still get the following error:

Loading dependency graph...jest-haste-map: @providesModule naming collision: Duplicate module name: crud Paths: /Users/name/ProjectName/awsmobilejs/backend/cloud-api/itemsHandler/package.json collides with /Users/name/ProjectName/awsmobilejs/#current-backend-info/cloud-api/itemsHandler/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.

Any idea to resolve this clash?