Help Needed: EAS Build Failing for iOS in Monorepo Setup (Module Resolution Issue)
I’m running into an issue with my Expo project during an iOS build using EAS, and I’m hoping someone can help me figure out what’s going wrong.
The Issue:
When I run the build using eas build --platform ios --profile production, I get the following error:
This is strange because everything works perfectly fine when I run the app locally, in development mode. The issue only occurs during the EAS build process for iOS.
Project Setup:
• Monorepo Structure:
• The client app is in apps/wandrlust-client.
• The backend package (which includes the convex/_generated/api file) is in packages/backend.
What I’ve Tried:
• I’ve verified that the @packages/backend/convex/_generated/api file exists and that everything is working locally.
• I’ve tried clearing the cache (expo start --clear), rebuilding the backend package manually, and ensuring all dependencies are installed correctly.
• I’ve also reviewed the EAS build logs but didn’t find anything pointing to a clear solution.
Question:
Has anyone encountered a similar issue where a project works locally but fails during the EAS build, especially in a monorepo setup? Could there be something specific to the EAS build environment (like module resolution or cache settings) that I’m missing?
Any help or suggestions on how to resolve this would be greatly appreciated!
thanks...!
