Closed
Description
I installed the project, got the latest version with React 16, but I'm trying to reuse some code from a project using React 15 so I downgraded all versions to what's specified here. But now, it seems the process is stuck in "Starting packager...".
Any reason why I'm having this issue? And how can I fix/debug it?
npm ls react-native-scripts
: react-native-scripts@0.0.29npm ls react-native
: react-native@0.42.3npm ls expo
: expo@15.1.3node -v
: v7.10.0npm -v
: 4.6.1yarn --version
: 0.23.4watchman version
: "version": "4.7.0"
Also specify:
- Operating system: mac OS
- Phone/emulator/simulator & version: npm start or npm run ios produces the same issue
Activity
deepmehtait commentedon May 11, 2017
@tleunen : You can try to find current running node processes and kill them. Also try to clear watchman
watchman watch-del-all
(do it multiple times), close all open terminals andreact-native start --reset-cache
. Had similar issue and solved by killing all node processes, clearing watchman and reseting cache.tleunen commentedon May 11, 2017
I tried it, and killed all node processes. I even restarted the machine and it still stuck.
I can see that the script is spawning a couple of node processes, but I don't see anything but "Starting packager" in the console and the processes don't seem very active.
deepmehtait commentedon May 11, 2017
@tleunen : try to clean up your
rm -rf node_modules
folder andnpm i
see if that helps?tleunen commentedon May 11, 2017
Nop :(
I tried to create a blank new app and it works fine there. So it seems there's something wrong in my other project but the system doesn't tell me what...
brentvatne commentedon May 11, 2017
what sdkVersion is specified in app.json?
tleunen commentedon May 11, 2017
15.0.0
brentvatne commentedon May 11, 2017
can you share the repo with me privately?
tleunen commentedon May 11, 2017
Could you try this one? https://github.com/tleunen/rn-myapp
It's a basic
create-react-native-app
install, then I updated the versions in the package.json and app.json, and fully rebuild/fetch the dependencies.brentvatne commentedon May 11, 2017
@tleunen - is that one broken for you too?
tleunen commentedon May 11, 2017
Yep, as soon as I change the versions for react, expo and react-native, the packager doesn't start
brentvatne commentedon May 11, 2017
@tleunen - I see! the problem is that react-native-scripts isn't guaranteed to be backwards compatible, and in this case it was not. It would have been better to have an error message to indicate that -- I didn't anticipate that anybody would want to create a new project and downgrade. If you install
react-native-scripts@0.0.26
this will be fixed (tried it on your example project)tleunen commentedon May 11, 2017
Oh I see. Thanks!
The reason why I wanted to downgrade is because I'm trying to integrate with another app which was built with react 15.4. And when I tried it at first, I got a few errors related to
react/lib/ReactTransitionGroup
not being found (probably because a few things used React 16 and some others React 15. So I wanted to downgrade and see if it resolved my issue.Anyway, thanks for finding the root cause. Funny enough, I tried to change the version of the scripts but didn't go low enough to 0.0.26 :)
RohanNg commentedon Aug 4, 2017
I am using Ubuntu 16.04. Now the problem happens to me even with fresh CNRA app.
#343
vladimirovvk commentedon Aug 8, 2017
This should resolve the "Starting packager" issue: https://forums.expo.io/t/packager-not-loading-on-linux/2034/3
5 remaining items
bugkias commentedon Nov 15, 2017
Try to install yarn, then run 'yarn start' instead of 'npm start' or 'react-native start'
ballenwillis commentedon Jan 4, 2018
For me, if I just press 'q' it displays the QR code, but it won't display the QR code automatically. If I don't press 'q', it will just say "running packager". However, then it leads to issue 81.
kakkarott commentedon Jan 9, 2018
works for me
harshalthakre commentedon Mar 26, 2018
AwesomeProject@0.1.0 start /home/harshal/react-Native/AwesomeProject
00:44:36: Starting packager...
its been five minutes its still have'nt started, I think it will wait for infinite time?
Whats the issue here?
stopal commentedon Apr 15, 2018
Well... its almost a year since this is posted. Even the "Getting Started" skeleton wont work... and i cant figure out why. This cant be right :(
marksilvis commentedon Apr 20, 2018
Removing the following from
app.json
worked for me:nickerlan commentedon May 4, 2018
For me the same issue was in accessing expo.io
The solution worked for me is using proxy.
Thanks to @p0liper for setting up special solution for that: #653
pashute commentedon May 26, 2018
By me the issue was that the start command in package.json had changed from:
to
kenji-1996 commentedon Jun 12, 2018
Really blows my mind that these sort of problems are in a starter seed that facebook themselves published.
If you want to get people into your platform then this is not the way to do it
abayo-luc commentedon Jun 14, 2018
Just delete the yarn lock file, and run
yarn start
pashute commentedon Jun 14, 2018
thanks abayo-luc that solved it!
kenji-1996 commentedon Jun 14, 2018
Alot of people are using NPM; and these sorts of problems shouldnt need weird trouble shooting to fix
brentvatne commentedon Jun 14, 2018
this is an old issue that conflates a bunch of different root causes with one message. locked conversation because it's off topic.
@kenji-1996 - this library is not published or maintained by facebook. feel free to help out or get out.