nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.23k stars 2.31k forks source link

nx/expo not showing QR on Windows #27108

Closed bjornraats closed 2 days ago

bjornraats commented 1 month ago

Current Behavior

Nx/Expo is not showing qr and other sideloading options after metro starts

Expected Behavior

Nx/Expo should show QR and other side loading options

GitHub Repo

No response

Steps to Reproduce

  1. Create a new expo app with latest nx version (nx 19.5.3 / expo 51.0.8) -> npx create-nx-workspace@latest --preset=expo --appName=test-expo-app

  2. Start the new expo app -> nx start test-expo-app

Nx Report

Node   : 20.13.1
OS     : win32-x64
npm    : 10.5.2

nx                 : 19.5.3
@nx/js             : 19.5.3
@nx/jest           : 19.5.3
@nx/linter         : 19.5.3
@nx/eslint         : 19.5.3
@nx/workspace      : 19.5.3
@nx/detox          : 19.5.3
@nx/devkit         : 19.5.3
@nx/eslint-plugin  : 19.5.3
@nx/expo           : 19.5.3
@nx/react          : 19.5.3
@nrwl/tao          : 19.5.3
@nx/web            : 19.5.3
@nx/webpack        : 19.5.3
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx/expo/plugin
@nx/eslint/plugin
@nx/jest/plugin
@nx/detox/plugin

Failure Logs

$ pnx start test-expo-app

> nx run test-expo-app:start

Packager is ready at http://localhost:19000
Starting project at C:\ihomer\repos\expo-test-app\app\apps\test-expo-app
Using src/app as the root directory for Expo Router.
Starting Metro Bundler
Waiting on http://localhost:19000
Logs for your project will appear below.

Package Manager Version

No response

Operating System

Additional Information

Also tried with Nx version 19.4.0 (which has said to have fixed this behavior according to https://github.com/nrwl/nx/issues/26529) and Expo 50.0.19 but still the same behavior...

bjornraats commented 1 month ago

@xiongemi any thoughts on this?

xiongemi commented 1 month ago

@bjornraats my guess would be set NX_NATIVE_COMMAND_RUNNER=false in your env file and run the command again to see if that would fix the issue?

xiongemi commented 2 weeks ago

i just tried it, when with executor, it works fine on my windows 11 machine:

"targets": {
  "start": {
      "executor": "@nx/expo:start"
  }
}
xiongemi commented 2 days ago

closing this issue for now