Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Dev Server wont start by npm start #768

Open
guygolanIL opened this issue Dec 2, 2019 · 13 comments
Open

Dev Server wont start by npm start #768

guygolanIL opened this issue Dec 2, 2019 · 13 comments

Comments

@guygolanIL
Copy link

guygolanIL commented Dec 2, 2019

Might be related to issue #316 .
Following the react 360 official tutorial i got stuck when starting the dev server by running npm start.

Bug
Followed the installation tutorial step by step from the official docs.

  1. npm install -g react-360-cli
  2. react-360 init Hello360
  3. cd Hello360
  4. npm start
    and this is the output:
    PS C:\Users\guy.golan\Desktop\Hello360> npm start

Hello360@0.0.1 start C:\Users\guy.golan\Desktop\Hello360
node node_modules/react-360/scripts/packager.js

open browser at http://localhost:8081/index.html

Starting React Native Packager...
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ Running Metro Bundler on port 8081. │
│ │
│ Keep Metro running while developing on any JS projects. Feel free to │
│ close this tab and run your own Metro instance if you prefer. │
│ │
https://github.com/facebook/react-native
│ │
└──────────────────────────────────────────────────────────────────────────────┘

Looking for JS files in
C:\Users\guy.golan\Desktop\Hello360

Metro Bundler ready.

Loading dependency graph, done.

It looks like its stuck after the "Loading dependency graph, done." statement.

Expecting the server to be up at http://localhost:8081/index.html but no response.

Additional Information

  • 'react-360' package version: [~1.1.0]
  • 'react-360-web' package version: [~1.1.0]
  • Operating System: [Windows]
  • Browser: [Chrome]
  • VR Device: [no set]
@ansible-comme
Copy link

Any reason there's a difference between your init Hello360 and folder name hello-react-360 in your comment?

Anything showing in the console when you open localhost after the "Loading dependency graph, done." statement.?

@guygolanIL
Copy link
Author

guygolanIL commented Dec 3, 2019

Any reason there's a difference between your init Hello360 and folder name hello-react-360 in your comment?

Yeah sorry for the confusion, i tried creating multiple projects with the init command. Its Irrelevant since the init process for both project was the same. ill edit the main post.

Anything showing in the console when you open localhost after the "Loading dependency graph, done." statement.?

After 'Loading dependency graph, done.' there is no other line.
Honestly it looks like its "--watch"ing for changes.

@guygolanIL
Copy link
Author

I saw that React 360/VR has some connection to React Native so it might be worthy to note that i have never installed anything related to React Native.

@ansible-comme
Copy link

Yeah sorry for the confusion
np thought that might be the case

How about your browser console, does it log any errors there? Or what does the localhost response say in browser?

@guygolanIL
Copy link
Author

guygolanIL commented Dec 4, 2019

How about your browser console, does it log any errors there? Or what does the localhost response say in browser?

In the browser (Chrome) I dont even reach the server I get "This page isn't working" ERR_EMPTY_RESPONSE

@ansible-comme
Copy link

Some general suggestions but I've limited experience...

  • update node
  • run npm start -- --reset-cache
  • VPN could be an issue
  • conflict from different package you've used in the past (?)
  • clear browser cache (worked for me with http-server issue)
  • Refresh your browser after "Loading dependency graph, done." to kick start the bundle process.

@guygolanIL
Copy link
Author

Hi. I went and updated my node to version 12.13.1 and now executing npm start is throwing this output:

PS C:\Users\user\Desktop\Hello360> npm start

Hello360@0.0.1 start C:\Users\user\Desktop\Hello360
node node_modules/react-360/scripts/packager.js

open browser at http://localhost:8081/index.html

An error occurred during the packager process. Exited with code 1. d character class
Look at the packager output above to see what went wrong.
npm ERR! code ELIFECYCLE dules\.|heapCapture\bundle.js|.\tests\.*)$/: Unterminated character class
npm ERR! errno 1
npm ERR! Hello360@0.0.1 start: node node_modules/react-360/scripts/packager.js
npm ERR! Exit status 1 /packager.js`
npm ERR!
npm ERR! Failed at the Hello360@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. dditional logging

npm ERR! A complete log of this run can be found in: output above.
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2019-12-09T17_22_59_866Z-debug.log 09T17_22_59_866Z-d
PS C:\Users\user\Desktop\Hello360> node -v ebug.log
v12.13.1
PS C:\Users\user\Desktop\Hello360>

@ansible-comme
Copy link

Some issues with React Native w/ Expo too, possible fix here: expo/expo-cli#1074 (comment)

@sprucetonye
Copy link

Some issues with React Native w/ Expo too, possible fix here: expo/expo-cli#1074 (comment)

but React 360 does not have metro-config\src\defaults\blacklist.js so where can we possibly get this help or should i format my system? thanks

@sprucetonye
Copy link

Hey I'm sorry about the misconception. Cheers

@cskbv
Copy link

cskbv commented Jun 15, 2020

Hi, I get the same error too and still have not been able to fix it. Can someone please help me do it

An error occurred during the packager process. Exited with code 1.
Look at the packager output above to see what went wrong.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Hello360@0.0.1 start: node node_modules/react-360/scripts/packager.js "--reset-cache"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Hello360@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\karti\AppData\Roaming\npm-cache_logs\2020-06-15T05_57_19_324Z-debug.log

This is the Error I am getting can someone please try and help me again

@sprucetonye
Copy link

Hi @cskbv
Can down grade your node version to 10.1
But please ensure you've uninstalled node completely before doing the own grade.

@deepakkhanna18
Copy link

deepakkhanna18 commented Jul 8, 2020

@guygolanIL guygolanIL

Any solution you got for it getting stuck on "It looks like its stuck after the "Loading dependency graph, done." statement."

My Hello360 basic example program getting stucked on this

I am using windows 10

Kindly help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants