managarten/apps-archived/memoro/apps/mobile/SENTRY_SDK54_WORKAROUND.md
Till-JS 61d181fbc2 chore: archive inactive projects to apps-archived/
Move inactive projects out of active workspace:
- bauntown (community website)
- maerchenzauber (AI story generation)
- memoro (voice memo app)
- news (news aggregation)
- nutriphi (nutrition tracking)
- reader (reading app)
- uload (URL shortener)
- wisekeep (AI wisdom extraction)

Update CLAUDE.md documentation:
- Add presi to active projects
- Document archived projects section
- Update workspace configuration

Archived apps can be re-activated by moving back to apps/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 07:03:59 +01:00

1.1 KiB

Sentry SDK 54 Compatibility Workaround

Issue

Sentry React Native SDK (v6.20.0 and even v7.1.0) is incompatible with Expo SDK 54's Metro bundler (metro@0.83).

The error occurs during EAS builds:

TypeError: countLines is not a function
    at createDebugIdModule (@sentry/react-native/src/js/tools/sentryMetroSerializer.ts:182:22)

Temporary Fix Applied

  1. metro.config.js: Disabled Sentry's Metro configuration

    • Commented out getSentryExpoConfig
    • Using getDefaultConfig from expo/metro-config instead
  2. app.json: Removed Sentry plugin temporarily

    • Commented out the @sentry/react-native/expo plugin configuration

Impact

  • Sentry error tracking still works in the app
  • Source maps and debug symbols won't be uploaded to Sentry
  • Stack traces in Sentry may be less detailed

To Revert When Fixed

  1. Uncomment Sentry imports in metro.config.js
  2. Re-add Sentry plugin configuration to app.json
  3. Monitor GitHub issue: https://github.com/getsentry/sentry-react-native/issues/5180

Expected Fix

Sentry team is aware and working on SDK 54 compatibility. Expected in v7.2.0 or later.

Date: 2025-09-23