You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ yarn run:android
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 577ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 251ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 743ms
➤ YN0000: Done in 2s 687ms
nx run client-mobile:run-android
info Dependencies for 'client-mobile' are up to date! No changes made.
JS server already running.
error: unknown option '--device-id'
(Did you mean --deviceId?)
setting deviceId for android in project.json does not result in an error.Android
GitHub Repo
No response
Steps to Reproduce
In your react-native app's project.json, set "run-android" with the following options:
"run-android": {
"executor": "@nrwl/react-native:run-android",
"options": {
"deviceId": "Pixel_5_API_33"
}
},
Open a first terminal window
navigate to the root of your nx monorepo
Start Metro server in the first terminal window using "nx start "
Current Behavior
apps/client/mobile/project.json
"run-android": {
"executor": "@nrwl/react-native:run-android",
"options": {
"deviceId": "Pixel_5_API_33"
}
},
Output
❯ yarn run:android
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 577ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 251ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 743ms
➤ YN0000: Done in 2s 687ms
info Dependencies for 'client-mobile' are up to date! No changes made.
JS server already running.
error: unknown option '--device-id'
(Did you mean --deviceId?)
——————————————————————————————————————————————————————————————————————————————
View structured, searchable error logs at https://nx.app/runs/6UKhc58c37
Expected Behavior
setting deviceId for android in project.json does not result in an error.Android
GitHub Repo
No response
Steps to Reproduce
In your react-native app's project.json, set "run-android" with the following options:
"run-android": {
"executor": "@nrwl/react-native:run-android",
"options": {
"deviceId": "Pixel_5_API_33"
}
},
Open a first terminal window
navigate to the root of your nx monorepo
Start Metro server in the first terminal window using "nx start "
Open a second terminal window
navigate to the root of your nx monorepo
Run Android using "nx run-android "
Nx Report
Failure Logs
Additional Information
{
"name": "client-mobile",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/client/mobile/src",
"projectType": "application",
"targets": {
"start": {
"executor": "@nrwl/react-native:start",
"options": {
"port": 8081,
"resetCache": true
}
},
"serve": {
"executor": "nx:run-commands",
"options": {
"command": "nx start mobile"
}
},
"run-ios": {
"executor": "@nrwl/react-native:run-ios",
"options": {
"simulator": "iPhone 14 Pro",
"install": true
}
},
"bundle-ios": {
"executor": "@nrwl/react-native:bundle",
"options": {
"entryFile": "src/main.tsx",
"platform": "ios",
"bundleOutput": "dist/apps/client/mobile/ios/main.jsbundle"
}
},
"run-android": {
"executor": "@nrwl/react-native:run-android",
"options": {
"deviceId": "Pixel_5_API_33"
}
},
"build-android": {
"executor": "@nrwl/react-native:build-android",
"outputs": [
"{projectRoot}/android/app/build/outputs/bundle",
"{projectRoot}/android/app/build/outputs/apk"
],
"options": {}
},
"bundle-android": {
"executor": "@nrwl/react-native:bundle",
"options": {
"entryFile": "src/main.tsx",
"platform": "android",
"bundleOutput": "dist/apps/client/mobile/android/main.jsbundle"
}
},
"sync-deps": {
"executor": "@nrwl/react-native:sync-deps",
"options": {}
},
"ensure-symlink": {
"executor": "@nrwl/react-native:ensure-symlink",
"options": {}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/client/mobile/**/*.{ts,tsx,js,jsx}"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/client/mobile/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"build-ios": {
"executor": "@nrwl/react-native:build-ios",
"outputs": ["{projectRoot}/ios/build/Build"],
"options": {}
},
"pod-install": {
"executor": "@nrwl/react-native:pod-install",
"options": {}
}
},
"tags": []
}
The text was updated successfully, but these errors were encountered: