Skip to content

chore: root npm start launches Expo from packages/mobile - #170

Merged
SishirP17 merged 1 commit into
mainfrom
chore/root-mobile-start-script
Jul 22, 2026
Merged

chore: root npm start launches Expo from packages/mobile#170
SishirP17 merged 1 commit into
mainfrom
chore/root-mobile-start-script

Conversation

@SishirP17

Copy link
Copy Markdown
Collaborator

Why

Running npx expo start at the monorepo root serves a phantom app: there is no app config at the root, so Expo falls back to node_modules/expo/AppEntry whose require('../../App') fails in Expo Go with an App resolution error. The root-level CLI run also auto-mutates the root tsconfig.json (adds extends: expo/tsconfig.base) and drops a stray .expo/ directory. This trap has now been hit twice.

What

npm start / npm run mobile at the root now delegate to the @rayhealth/mobile workspace (npm runs the script with the workspace as cwd) and pass the project's standard --port 8083, so the obvious command does the right thing.

Verified: the script prints Starting project at ...packages/mobile and picks up the mobile env.

Running npx expo start at the monorepo root silently serves a phantom app
(no app config there, default AppEntry requires ../../App which does not
exist), Expo Go fails with an App resolution error, and the CLI mutates
the root tsconfig.json. This has now happened twice.

npm start or npm run mobile at the root now delegates to the mobile
workspace with the project's standard port 8083, so the path of least
resistance is the correct one.
@SishirP17
SishirP17 requested a review from durga710 as a code owner July 22, 2026 17:07
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rayhealth-evv-platform-app Ready Ready Preview, Comment Jul 22, 2026 5:09pm

@SishirP17
SishirP17 merged commit c3fe95c into main Jul 22, 2026
14 checks passed
@SishirP17
SishirP17 deleted the chore/root-mobile-start-script branch July 22, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant