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

[0.54.4] Metro Bundler can't listen on port undefined #18673

Closed
3 tasks done
wouterds opened this issue Apr 3, 2018 · 6 comments
Closed
3 tasks done

[0.54.4] Metro Bundler can't listen on port undefined #18673

wouterds opened this issue Apr 3, 2018 · 6 comments
Labels
Resolution: Fixed A PR that fixes this issue has been merged. Resolution: Locked This issue was locked by the bot.

Comments

@wouterds
Copy link

wouterds commented Apr 3, 2018

Hi, I'm running the latest version of React Native and all goes well, except running from CLI to your device. Whenever I run react-native run-ios --device it fails with Metro Bundler can't listen on port undefined.

The issue has been fixed in #17983 however, but is scheduled for 0.55. Which makes the current latest version just unusable and broken. Backport needed asap.

Environment

Environment:
  OS: macOS High Sierra 10.13.3
  Node: 9.8.0
  Yarn: 1.3.2
  npm: 5.7.1
  Watchman: 4.9.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: Not Found

Packages: (wanted => installed)
  react: ^16.3.0 => 16.3.0
  react-native: ^0.54.4 => 0.54.4

Steps to Reproduce

Run react-native run-ios --device in any React Native project using the latest 0.54.4 release.

Expected Behavior

Start the metro bundler correctly and continue compiling the application.

Actual Behavior

Metro bundler fails because the port is undefined.

@jimji1005
Copy link

This is happening on 55 as well

`Environment:
OS: macOS High Sierra 10.13.3
Node: 8.6.0
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.1 AI-173.4670197

Packages: (wanted => installed)
react: ^16.3.0-alpha.0 => 16.3.0
react-native: 0.55.0 => 0.55.0`

❌ /Users/abc/Apps/testText/node_modules/react-native/React/Base/RCTBundleURLProvider.m:15:53: use of undeclared identifier 'undefined'; did you mean 'underline'?

const NSUInteger kRCTBundleURLProviderDefaultPort = RCT_METRO_PORT;

@hramos
Copy link
Contributor

hramos commented Apr 3, 2018

As this is already fixed in master, closing as Fixed.

0.55 should be getting released any moment. You may also discuss cherry-pick requests over at https://github.com/react-native-community/react-native-releases.

@hramos hramos closed this as completed Apr 3, 2018
@hramos hramos added the Resolution: Fixed A PR that fixes this issue has been merged. label Apr 3, 2018
@ASteinheiser
Copy link

Switching to react-native: 0.52.2 solved this for me

@wouterds
Copy link
Author

wouterds commented Apr 4, 2018

Downgrading is not an acceptable solution. I noticed 0.55 was just released, I'll give it a try!

Update: I see that the patch is included in 0.55, but it does not work anymore (while it used to if you manually changed it in 0.54.4). So we're still left with a broken release, afaics.

@jacktator
Copy link

Same issue here with @wouterds

@hatlestad
Copy link

I've got the same issue as @jacktator and @wouterds

@facebook facebook locked as resolved and limited conversation to collaborators Apr 3, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Fixed A PR that fixes this issue has been merged. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants