Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EAS local build fails #21101

Open
1 of 4 tasks
davesimtech opened this issue Jan 11, 2024 · 4 comments
Open
1 of 4 tasks

EAS local build fails #21101

davesimtech opened this issue Jan 11, 2024 · 4 comments
Assignees
Labels
scope: react-native Issues relating to React Native type: bug

Comments

@davesimtech
Copy link

Current Behavior

EAS build succeeds when they are sent to Expo, however when adding the --local flag the build fails

Expected Behavior

EAS local build succeeds

GitHub Repo

https://github.com/davesimtech/eastest/tree/main

Steps to Reproduce

  1. Create a new nx workspace with npx create-nx-workspace with the following options
    Which stack do you want to use? React
    What framework would you like to use? Expo
    Enable distributed caching to make your CI faster No
  2. Move into the created folder
  3. update "eas-cli" to 5.9.3
  4. run "npm install"
  5. run "npx expo install expo-dev-client"
  6. nx build eastestapp --profile development-simulator --platform ios --local

Nx Report

Node   : 20.10.0
   OS     : darwin-arm64
   npm    : 10.2.3
   
   nx (global)        : 17.2.0
   nx                 : 17.2.8
   @nx/js             : 17.2.8
   @nx/jest           : 17.2.8
   @nx/linter         : 17.2.8
   @nx/eslint         : 17.2.8
   @nx/workspace      : 17.2.8
   @nx/detox          : 17.2.8
   @nx/devkit         : 17.2.8
   @nx/eslint-plugin  : 17.2.8
   @nx/expo           : 17.2.8
   @nx/react          : 17.2.8
   @nrwl/tao          : 17.2.8
   @nx/web            : 17.2.8
   @nx/webpack        : 17.2.8
   typescript         : 5.2.2

Failure Logs

[PRE_INSTALL_HOOK] Usage Error: The nearest package directory (/private/var/folders/b9/kgxfsw_x2bgcwv6w3ffdrp7r0000gn/T/eas-build-local-nodejs/0207f37a-8b80-41af-8fe4-842e56d3ce03/build/apps/eastestapp) doesn't seem to be part of the project declared in /private/var/folders/b9/kgxfsw_x2bgcwv6w3ffdrp7r0000gn/T/eas-build-local-nodejs/0207f37a-8b80-41af-8fe4-842e56d3ce03/build.
[PRE_INSTALL_HOOK] 
[PRE_INSTALL_HOOK] - If /private/var/folders/b9/kgxfsw_x2bgcwv6w3ffdrp7r0000gn/T/eas-build-local-nodejs/0207f37a-8b80-41af-8fe4-842e56d3ce03/build isn't intended to be a project, remove any yarn.lock and/or package.json file there.
[PRE_INSTALL_HOOK] - If /private/var/folders/b9/kgxfsw_x2bgcwv6w3ffdrp7r0000gn/T/eas-build-local-nodejs/0207f37a-8b80-41af-8fe4-842e56d3ce03/build is intended to be a project, it might be that you forgot to list apps/eastestapp in its workspace configuration.
[PRE_INSTALL_HOOK] - Finally, if /private/var/folders/b9/kgxfsw_x2bgcwv6w3ffdrp7r0000gn/T/eas-build-local-nodejs/0207f37a-8b80-41af-8fe4-842e56d3ce03/build is fine and you intend apps/eastestapp to be treated as a completely separate project (not even a workspace), create an empty yarn.lock file in it.

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@AgentEnder AgentEnder added the scope: react-native Issues relating to React Native label Jan 28, 2024
@xiongemi xiongemi self-assigned this Feb 14, 2024
@xiongemi
Copy link
Collaborator

xiongemi commented Feb 14, 2024

@davesimtech
i cloned your repo and i can build locally.
could you run nx install eastestapp --check to see if you got any package you need to update? i ran the command and upgrade react-native, expo-dev-client and @types/react.
also, for this command, just make sure you run it at the workspace root rather than project root.

@vendramini
Copy link

@davesimtech did you solve it?
@xiongemi same problem here, I've ran --check and updated everything.

Copy link

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! 🙏

@github-actions github-actions bot added the stale label Sep 16, 2024
@dearlordylord
Copy link
Contributor

I'm having the exact error with my nx+expo project currently

@github-actions github-actions bot removed the stale label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: react-native Issues relating to React Native type: bug
Projects
None yet
Development

No branches or pull requests

5 participants