Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Xcode][0.45.0-rc.0] React Packager starts in a wrong directory #14070

Closed
bosung90 opened this issue May 19, 2017 · 9 comments
Closed

[Xcode][0.45.0-rc.0] React Packager starts in a wrong directory #14070

bosung90 opened this issue May 19, 2017 · 9 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@bosung90
Copy link

bosung90 commented May 19, 2017

Description

  1. Close any existing React Packager.
  2. Run iOS app using Xcode.
  3. Watch React Packager running automatically, then failing with the following
    image
    image

Workaround

Start React Packager manually using react-native start inside your root project directory

Additional Information

  • React Native version: "react-native": "^0.45.0-rc.0"
  • React version: "^16.0.0-alpha.12",
  • Platform: iOS, Xcode
  • Development Operating System: macOS
  • Dev tools: Xcode
@bosung90 bosung90 changed the title React packager starts in a wrong directory when started using Xcode [Xcode] React packager starts in a wrong directory May 19, 2017
@bosung90 bosung90 changed the title [Xcode] React packager starts in a wrong directory [Xcode] React Packager starts in a wrong directory May 19, 2017
@bosung90 bosung90 changed the title [Xcode] React Packager starts in a wrong directory [Xcode][0.45.0-rc.0] React Packager starts in a wrong directory May 19, 2017
@brenordr
Copy link

Same here when upgraded to RN45-rc.

@sjmueller
Copy link
Contributor

Same

@christianbach
Copy link

christianbach commented May 28, 2017

Same here with 0.45.0-rc.2 :(

@oallouch
Copy link

Same one android/windows

@christianbach
Copy link

Any "official" comment on this?

@nihgwu
Copy link
Contributor

nihgwu commented Jun 2, 2017

npm start -- --reset-cache

@oallouch
Copy link

oallouch commented Jun 3, 2017

ok... no expert here, but I guess I found it

. 1 window with the packager:
npm start -- --reset-cache
. and in another window :
react-native run-android
The packager opens a server on the port 8081 and is used by the other window.

@nkov
Copy link

nkov commented Jun 4, 2017

Works if you start the packager manually with npm start but doesn't work when launched alongside react-native run-android or react-native run-ios, it looks for the entry file in this location:

Looking for JS files in
${PROJECT_DIR}/node_modules/react-native/packager

when it should just be ${PROJECT_DIR} (using RN-0.45.0-rc.0)

@skevy
Copy link
Contributor

skevy commented Jun 8, 2017

Hi there!

The packager no longer lives in this repo. It now lives in https://github.com/facebook/metro-bundler. The reasoning for the split is explained here: #13976.

If you're still interested in pursuing this issue, please open an issue on that repo! :)

Thanks!
-Adam

@skevy skevy closed this as completed Jun 8, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jun 8, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants