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
Running EAS build for an Expo app in a monorepo fails. The cause seems to be that the eas-build-pre-install and eas-build-post-install do not take effect correctly and the default package.json file in the app is used instead of the full one.
Expected Behavior
Eas build should work using a newly generated expo app in an Nx monorepo.
This might be an issue with the EAS build agents directly, but it is hard to debug as I cannot easily see the full file structure to determine if the package.json file is correct. The pre and post hooks seem to work without issues.
The text was updated successfully, but these errors were encountered:
It appears that the .npmrc file is required for the installation on EAS to run correctly. Once I copied the .npmrc file to the nx-expo-test root folder the build works. Maybe that should also be part of the generator for pnpm-based repos?
This issue has been automatically marked as stale because it hasn't had any activity for 6 months.
Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore.
If at this point, this is still an issue, please respond with updated information.
It will be closed in 21 days if no further activity occurs.
Thanks for being a part of the Nx community! 🙏
Current Behavior
Running EAS build for an Expo app in a monorepo fails. The cause seems to be that the
eas-build-pre-install
andeas-build-post-install
do not take effect correctly and the defaultpackage.json
file in the app is used instead of the full one.Expected Behavior
Eas build should work using a newly generated expo app in an Nx monorepo.
GitHub Repo
https://github.com/rudfoss/nx-expo-test
Steps to Reproduce
See readme of repro repo
.npmrc
pnpm exec nx add @nx/expo
pnpm exec nx generate @nx/expo:application --name=nx-expo-test --directory=apps/nx-expo-test --displayName=NxExpoTest --e2eTestRunner=playwright --projectNameAndRootFormat=as-provided --no-interactive
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
This might be an issue with the EAS build agents directly, but it is hard to debug as I cannot easily see the full file structure to determine if the package.json file is correct. The pre and post hooks seem to work without issues.
The text was updated successfully, but these errors were encountered: