Prerequisites
- App and API running locally
- Access to logs
Steps
- Identify the failing flow
- Apply the relevant fix below
- Re-run the flow and confirm
Common Issues
Quick fixes for the most common problems you’ll encounter.Quick Fixes
Metro Bundler Issues
iOS Build Failures
Android Build Failures
Prisma Issues
Error Reference
'Unable to resolve module'
'Unable to resolve module'
Cause: Missing dependency or incorrect import
Fix:
'Network request failed'
'Network request failed'
Cause: API not reachable from device Fix: 1. Check API is running
(
pnpm dev in apps/api) 2. Update API URL to your local IP (not localhost)
3. Check CORS settings include your device’s origin'Apple Sign-In failed'
'Apple Sign-In failed'
Cause: Misconfigured Apple credentials Fix: 1. Verify bundle ID
matches APPLE_CLIENT_ID 2. Check APPLE_PRIVATE_KEY is correctly formatted 3.
Ensure Sign In with Apple is enabled in Apple Developer Console
'state mismatch' (Google sign-in on Android)
'state mismatch' (Google sign-in on Android)
Cause: OAuth started on one origin but the callback returned to another (common when mixing LAN URLs with ngrok).Fix:
- If API uses ngrok: set both
BETTER_AUTH_URL(API) andEXPO_PUBLIC_API_URL(mobile) to the same ngrok HTTPS origin - Ensure Google Console Authorized redirect URI matches exactly:
https://YOUR_NGROK.ngrok-free.app/api/auth/callback/google
'Database connection failed'
'Database connection failed'
Cause: PostgreSQL not running or wrong credentials Fix: 1. Start
PostgreSQL:
docker-compose up -d or brew services start postgresql 2.
Verify DATABASE_URL in .env 3. Run migrations: pnpm prisma migrate dev'Invalid hook call'
'Invalid hook call'
Cause: React version mismatch or incorrect hook usage Fix: 1. Ensure
only one React version:
pnpm why react 2. Check hooks are only called at
top level of componentsNext Steps
Getting Help
If you’re still stuck:- Search existing issues on GitHub
- Check Expo documentation at docs.expo.dev
- Ask in the community - Discord, GitHub Discussions
- Open an issue with reproduction steps