Sano
Sano
CCConvex Community
Created by Sano on 10/14/2024 in #support-community
Help Needed: EAS Build Failing for iOS in Monorepo Setup (Module Resolution Issue)
Hi everyone, 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:
❌ Metro encountered an error:
Unable to resolve module @packages/backend/convex/_generated/api from /Users/expo/workingdir/build/apps/client/app/(main)/(drawer)/(tabs)/community.tsx: @packages/backend/convex/_generated/api could not be found within the project or in these directories:
node_modules
../../node_modules
❌ Metro encountered an error:
Unable to resolve module @packages/backend/convex/_generated/api from /Users/expo/workingdir/build/apps/client/app/(main)/(drawer)/(tabs)/community.tsx: @packages/backend/convex/_generated/api could not be found within the project or in these directories:
node_modules
../../node_modules
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...!
4 replies
CCConvex Community
Created by Sano on 8/6/2024 in #support-community
Integrating Clerk with Expo and Convex
I am integrating Clerk authentication in an Expo app with a Convex backend. I would like some guidance on setting up a proper architecture, the best implementation methods, and best practices to ensure that the system is strong and long-lasting without issues. Precisely, it is necessary to understand how to set up Clerk with Expo and Convex integration for database syncing and ensure fluent operation and efficient integration. Any person having experience with such a setup, or who would be able to point to detailed resources, example repositories, or step-by-step guides, would be highly welcome. thanks!
1 replies