Command ‘expo build:android -t app-bundle’ works fine and I can see the app build successfully on Expo’s servers. However command ‘eas build --platform android’ fails with error “The expected package.json path: /root/workingdir/build/package.json does not exist”. In both cases I’m running the command from my app’s root directory (which contains file package.json).
Note: I’m unable to debug by running ‘eas build’ locally because I’m running on a windows machine (so not supported). How do I debug / fix?
My guess is that package.json is not committed to Git, or you have package.json in your .gitignore file (or less likely you have package.json in a .easignore file.)
What’s the structure of your project? Do you have app.json and package.json in the root directory of your project and a .git directory also at the root?
See this document for how the project is uploaded to the build servers. You can run the eas build:inspect ... command mentioned there to see exactly what will be uploaded:
OK, so it’s a monorepo. Expo has some support for monorepos, described here:
I have not used Expo in a monorepo, so I can’t give you more info about it than the above, and perhaps the following link which may or may not help: expo.fyi/eas-vcs-workflow