obytes / react-native-template-obytes

📱 A template for your next React Native project: Expo, PNPM, TypeScript, TailwindCSS, Husky, EAS, GitHub Actions, Env Vars, expo-router, react-query, react-hook-form.
https://starter.obytes.com
MIT License
2.19k stars 321 forks source link

expo-dev-client doesn't work #341

Closed pmilaszewski closed 4 weeks ago

pmilaszewski commented 2 months ago

Summary:

when trying to use build:development:ios or build:development:android on fresh starter it fails with error:

> withless@0.0.1 build:development:ios /.../app-mobile
> cross-env APP_ENV=development EXPO_NO_DOTENV=1 eas build --profile development --platform ios

node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: spawn eas ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn eas',
  path: 'eas',
  spawnargs: [ 'build', '--profile', 'development', '--platform', 'ios' ]
}

Node.js v20.15.1

Steps to reproduce:

create new project run build:development:ios or build:development:android

Expected behavior:

should start metro with QR code to scan and install app on real device

Xfront-end commented 2 months ago

i got a same problem, macos nodejs 20

Xfront-end commented 2 months ago

i got a same problem, macos nodejs 20

zhuhaitao@zhuhaitaodeMacBook-Pro DashcamMobileApp % pnpm build:development:ios

dashcammobileapp@0.0.1 build:development:ios /Users/zhuhaitao/Desktop/projects/DashcamMobileApp cross-env APP_ENV=development EXPO_NO_DOTENV=1 eas build --profile development --platform ios

node:events:492 throw er; // Unhandled 'error' event ^

Error: spawn eas ENOENT at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Emitted 'error' event on ChildProcess instance at: at ChildProcess._handle.onexit (node:internal/child_process:292:12) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn eas', path: 'eas', spawnargs: [ 'build', '--profile', 'development', '--platform', 'ios' ] }

Node.js v20.10.0

yearsalary commented 1 month ago

This might be related to this issue. issue it work for me. solution