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

## Environment #4401

Closed
nand16041987 opened this issue Oct 17, 2024 · 4 comments
Closed

## Environment #4401

nand16041987 opened this issue Oct 17, 2024 · 4 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@nand16041987
Copy link

nand16041987 commented Oct 17, 2024

Environment

System:
  OS: macOS 14.6
  CPU: (16) arm64 Apple M3 Max
  Memory: 18.09 GB / 48.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.8.0
    path: ~/.asdf/installs/nodejs/22.8.0/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.asdf/shims/yarn
  npm:
    version: 10.8.2
    path: ~/.asdf/plugins/nodejs/shims/npm
  Watchman:
    version: 2024.09.30.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /Users/tylerwilliams/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.21829.142.2421.12409432
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.3.4
    path: /Users/tylerwilliams/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.3
    wanted: 0.75.3
  react-native-macos:
    installed: 0.75.6
    wanted: ^0.75.0-0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Description

I first noticed this while working in an out-of-tree platform, React Native MacOS. Running npx react-native run-macos did not start Metro automatically. Filed the full set of details originally in their project at microsoft/react-native-macos#2208

But I got a notificaiton about the "removing run on iOS/Android key handlers" discussion about this comment: react-native-community/discussions-and-proposals#821 (comment)

not opposed to this change (alongside the above, it also seems less confusing to only have one entry point), but I do want to note that, at least for me, yarn android doesn't seem to start Metro? I'm using Ubuntu 24.04/GNOME Terminal if it matters - I swear it did work (at least occasionally) on Windows but I'm not certain about that

And I thought it might be related to what I had seen on React Native MacOS.

Reproducible Demo

Follow the React Native macOS setupd (for the most part, the current docs are actually a little out of date, but this will be the steps for an up-to-date RN project)

  1. npx @react-native-community/cli init macapp
  2. cd macapp
  3. npx react-native-macos-init
  4. npx react-native run-macos

The app will build, but not start Metro:

image

Not a big deal, I can just run yarn start, then tap "reload"

Everything works great from there. I also did not have this issue when following the instructions for RN 0.71:

npx react-native@latest init <projectName> --version 0.71.0

Reproducer repo: https://github.com/coolsoftwaretyler/rnms-issue-repro

It sounds like this is happening on in-tree platforms as well based on @Rexogamer's comment in that discussion post, but I don't have a reproduction for that at the moment.

Thanks for your work and consideration!

Originally posted by @coolsoftwaretyler in react-native-community/cli#2530

Originally posted by @nand16041987 in trustwallet/assets#29351

@lobehubbot
Copy link
Member

👀 @nand16041987

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@dosubot dosubot bot added the 🐛 Bug Something isn't working | 缺陷 label Oct 17, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Oct 17, 2024
@9764319764319764
Copy link

Environment

System:
  OS: macOS 14.6
  CPU: (16) arm64 Apple M3 Max
  Memory: 18.09 GB / 48.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.8.0
    path: ~/.asdf/installs/nodejs/22.8.0/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.asdf/shims/yarn
  npm:
    version: 10.8.2
    path: ~/.asdf/plugins/nodejs/shims/npm
  Watchman:
    version: 2024.09.30.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /Users/tylerwilliams/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.21829.142.2421.12409432
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.3.4
    path: /Users/tylerwilliams/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.3
    wanted: 0.75.3
  react-native-macos:
    installed: 0.75.6
    wanted: ^0.75.0-0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Description

I first noticed this while working in an out-of-tree platform, React Native MacOS. Running npx react-native run-macos did not start Metro automatically. Filed the full set of details originally in their project at microsoft/react-native-macos#2208

But I got a notificaiton about the "removing run on iOS/Android key handlers" discussion about this comment: react-native-community/discussions-and-proposals#821 (comment)

not opposed to this change (alongside the above, it also seems less confusing to only have one entry point), but I do want to note that, at least for me, yarn android doesn't seem to start Metro? I'm using Ubuntu 24.04/GNOME Terminal if it matters - I swear it did work (at least occasionally) on Windows but I'm not certain about that

And I thought it might be related to what I had seen on React Native MacOS.

Reproducible Demo

Follow the React Native macOS setupd (for the most part, the current docs are actually a little out of date, but this will be the steps for an up-to-date RN project)

  1. npx @react-native-community/cli init macapp
  2. cd macapp
  3. npx react-native-macos-init
  4. npx react-native run-macos

The app will build, but not start Metro:

image

Not a big deal, I can just run yarn start, then tap "reload"

Everything works great from there. I also did not have this issue when following the instructions for RN 0.71:

npx react-native@latest init <projectName> --version 0.71.0

Reproducer repo: https://github.com/coolsoftwaretyler/rnms-issue-repro

It sounds like this is happening on in-tree platforms as well based on @Rexogamer's comment in that discussion post, but I don't have a reproduction for that at the moment.

Thanks for your work and consideration!

Originally posted by @coolsoftwaretyler in react-native-community/cli#2530

Originally posted by @nand16041987 in trustwallet/assets#29351

@arvinxx arvinxx closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Oct 18, 2024
@lobehubbot
Copy link
Member

@nand16041987

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@9764319764319764
Copy link

h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Archived in project
Development

No branches or pull requests

4 participants