question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stuck on "Starting packager..."

See original GitHub issue

Description

When I start a new project and run yarn run ios it opens the simulator. But as soon as the second or third time I try to use yarn run ios again while working on the app it hangs on Starting packager... for over 5 minutes.

Expected Behavior

Run the ios simulator (again)

Observed Behavior

I’ve started over 4 times now and it always has a problem at a different, seemingly random stage in me building the app when I try to use yarn run ios. It works and works and works and then eventually it stops working and I have to start over again. IT doesn’t seem to be a consistant point in which things stop working. I was using npm to install and run processes but now I’m using yarn. Both have the same issue. I’m following instructions in this guide by the way, both as-is and with yarn instead of npm. Even when I revert to my git history when it was working, and rm -rf node_modules && yarn install / npm install the problem persists

If there’s an error message, please paste the full terminal output and error message in this code block:

Error text goes here!

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: react-native-scripts@1.14.0
  • npm ls react-native: react-native@0.55.4
  • npm ls expo: expo@27.1.0
  • node -v: v10.4.1
  • npm -v: 6.1.0
  • yarn --version: 1.7.0
  • watchman version: “version”: “4.9.0”

Also specify:

  1. Operating system: macOS High Sierra 10.13.5
  2. Phone/emulator/simulator & version: Version 10.0 (SimulatorApp-851.2 CoreSimulator-518.22)

Reproducible Demo

This is reproducable by following the steps in the guide linked above.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:16

github_iconTop GitHub Comments

14reactions
yxh10commented, Aug 4, 2018

I managed to find the solution.

There could be multiple reasons for the issue. For the most recent version of react-native (Aug 2018), what you might need to do is just press ‘q’, it will displays the QR code.

After that, you use the expo app scan the QR code, it should start to bundle the scripts and load it to your phone.

If not, you have might another issue which is caused by the incompatibility among React-Native, React and Expo. If you are using Expo 27, you should use reactive-native 0.55.

There is a complete matrix here, https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md

Anyone who face problem after running npm audit fix, that is because it will try to install react-native 0.56 which doesn’t work with Expo 27 well.

11reactions
msmaromicommented, Aug 24, 2018

I solve by changing the react-native-scripts from 1.14.1 to 1.14.0 and react-native from 0.56 to 0.55.4. Then rm -rf node_modules and npm install. This installation will displays vulnerabilities warning, and npm recommend to npm audit. Just leave it and npm start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native STUCK starting packager - Stack Overflow
I had the same issue. I solved it by changing react-native-scripts version from "^1.14.1" to "1.14.0" and run npm install again.
Read more >
Stuck in "Starting packager" #203 - GitHub
I installed the project, got the latest version with React 16, but I'm trying to reuse some code from a project using React...
Read more >
"npm start" execution got stuck on "starting/running packager.."
after running npm start when it shows “starting/running packager.” just press 'q' it will display the QR code, but it won't display the...
Read more >
stuck at Starting packager... - Robin's Blog
Packager started ! ... View your app with live reloading: Android device: -> Point the Expo app to the QR code above. (You'll...
Read more >
[Solved]-Stuck in "Starting packager" - React Native-React ...
Coding example for the question Stuck in "Starting packager" - React Native-React Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found