Closed
Description
Current Behavior
After creating a new expo monorepo with Nx v19.1.1, Gradle throws an error.
The only thing I updated is some Expo packages like @expo/cli
, expo-dev-client
...
Expected Behavior
Build the app locally on my Android emulator.
Haven't tested on iOS.
GitHub Repo
https://github.com/guillempuche/test-nx-expo
Steps to Reproduce
- Install packages with npm
- Change EAS config in
app.json
(username and EAS id) - Run
npx nx run expo:run-android
Nx Report
Node : 20.9.0
OS : darwin-arm64
npm : 10.1.0
nx : 19.1.1
@nx/js : 19.1.1
@nx/jest : 19.1.1
@nx/linter : 19.1.1
@nx/eslint : 19.1.1
@nx/workspace : 19.1.1
@nx/detox : 19.1.1
@nx/devkit : 19.1.1
@nx/eslint-plugin : 19.1.1
@nx/expo : 19.1.1
@nx/react : 19.1.1
@nrwl/tao : 19.1.1
@nx/web : 19.1.1
@nx/webpack : 19.1.1
typescript : 5.4.5
---------------------------------------
Registered Plugins:
@nx/expo/plugin
@nx/eslint/plugin
@nx/jest/plugin
@nx/detox/plugin
Failure Logs
> nx run expo:run-android
› Installing using npm
> npm install
up to date, audited 1847 packages in 1s
238 packages are looking for funding
run `npm fund` for details
7 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
› Building app...
Configuration on demand is an incubating feature.
> Configure project :app
ℹ️ Applying gradle plugin 'expo-dev-launcher-gradle-plugin' (expo-dev-launcher@4.0.16)
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/guillem/programacio/codi/testing/test-nx-expo/node_modules/expo/android/build.gradle' line: 8
* What went wrong:
A problem occurred evaluating project ':expo'.
> Project with path ':expo-modules-core' could not be found in project ':expo'.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 3s
10 actionable tasks: 1 executed, 9 up-to-date
Error: /Users/guillem/programacio/codi/testing/test-nx-expo/apps/expo/android/gradlew exited with non-zero code: 1
Error: /Users/guillem/programacio/codi/testing/test-nx-expo/apps/expo/android/gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/Users/guillem/programacio/codi/testing/test-nx-expo/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (node:events:629:26)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
...
at Object.spawnAsync [as default] (/Users/guillem/programacio/codi/testing/test-nx-expo/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
at spawnGradleAsync (/Users/guillem/programacio/codi/testing/test-nx-expo/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:72:46)
at Object.assembleAsync (/Users/guillem/programacio/codi/testing/test-nx-expo/node_modules/@expo/cli/build/src/start/platforms/android/gradle.js:52:18)
at runAndroidAsync (/Users/guillem/programacio/codi/testing/test-nx-expo/node_modules/@expo/cli/build/src/run/android/runAndroidAsync.js:36:24)
NX 1
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Ran target run-android for project expo (7s)
✖ 1/1 failed
✔ 0/1 succeeded [0 read from cache]
Package Manager Version
npm v10.1.0
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment